ODD One out Quiz

Friday, 28 March 2014

// Program to Add two numbers without using Add (+) operator
int a = 42, b = 13;
int c = a - ~b - 1;

Console.WriteLine("The value of a is " + a + "\n");
Console.WriteLine("The value of b is " + b + "\n");
Console.WriteLine("The Addition of a and b and value of c is " + c);
Console.ReadKey();



No comments:

Post a Comment