29
1
using System;
2
public class Program {
3
public static void Main() {
4
int a = 10;
5
int b = 5;
6
// Addition (+)
7
Console.WriteLine("a + b = " + (a + b));
8
9
// Subtraction (-)
10
Console.WriteLine("a - b = " + (a - b));
11
12
// Multiplication *
13
Console.WriteLine("a * b = " + (a * b));
14
15
// Division
16
Console.WriteLine("a / b = " + (a / b));
17
18
// Modulus(%)
19
Console.WriteLine("a % b = " + (a % b));
20
21
// Increment (++)
22
a++;
23
Console.WriteLine("a++ = " + (a++));
24
25
// Decrement (--)
26
b--;
27
Console.WriteLine("b-- = " + (b--));
28
}
29
}
Cached Result