-
Notifications
You must be signed in to change notification settings - Fork 18
/
Arithmetic Operations.txt
43 lines (41 loc) · 1.69 KB
/
Arithmetic Operations.txt
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//char firstChar = 'Q';
//bool KeepRunning = true;
//do
//{
// Console.Write("What do u want to do? (Add,Sub,Mul,Did,Quit):");
// string inp = Console.ReadLine();
// firstChar = inp[0];
// KeepRunning = !(firstChar == 'q' || firstChar == 'Q');
// if (KeepRunning)
// {
// Console.Write("Enter First num");
// double FirstNum = double.Parse(Console.ReadLine());
// Console.Write("Enter Sec num");
// double SecondNum = double.Parse(Console.ReadLine());
// double Res = 0;
// switch (firstChar)
// {
// case 'a':
// case 'A':
// Res = FirstNum + SecondNum;
// break;
// case 's':
// case 'S':
// Res = FirstNum - SecondNum;
// break;
// case 'm':
// case 'M':
// Res = FirstNum * SecondNum;
// break;
// case 'd':
// case 'D':
// Res = FirstNum / SecondNum;
// break;
// default:
// Res = -1;
// break;
// }
// Console.WriteLine();
// Console.WriteLine("Your result is" + Res);
// }
//} while (KeepRunning);