-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
28 lines (25 loc) · 913 Bytes
/
Program.cs
File metadata and controls
28 lines (25 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
int a = 20;
int b = 10;
int c;
c = a + b;
Console.WriteLine("\n\t variable a value before increament : " +a);
Console.WriteLine("\t variable b value before decsrement : " + a);
Console.WriteLine("sum of a and b is = " + c);
a = ++a;
b = --b;
c = a - b;
Console.WriteLine("\n\t variable a value after first increment = "+a);
Console.WriteLine("\t variable b value after first decrement = "+b);
Console.WriteLine("subtract of a and b is = " + c);
a = ++a;
b= --b;
c = a * b;
Console.WriteLine("\n\t variable a value after second increment = "+ a);
Console.WriteLine("\t variable b value after second decrement = " + b);
Console.WriteLine("Multiplation of a and b is = " + c);
a = ++a;
b = --b;
c = a / b;
Console.WriteLine("\n\t variable a value after third increment = " + a);
Console.WriteLine("\t variable b value after third decrement = " + b);
Console.WriteLine("Division of a and b is = " + c);