anti virus

anti virus

  • NA
  • 17
  • 3.5k

bit of maths problem

Dec 15 2018 5:17 PM
output 2,4,6
basic maths but i just seem to be able to get the correct numbers to get the output
 
using System;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int a, b, c;

a = -1;
b = -2;
c = 2;

b = 2 * a * b;
a = (c - b) * 2;
c = a + b;
Console.Write(a + ", " + b + ", " + c);
}
}

Answers (1)