Math Operators with int value
using System;
class Operators {
static void Main() {
int a, b, c, d, e;
a = 14;
b = 15;
c = 20;
d = a + b - c; //d=9
c += d; //c=29
e = c + d; //e=38
e /= 2; //e=19
Console.WriteLine("{0}", e);
}
}
Related examples in the same category