-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
30 lines (22 loc) · 861 Bytes
/
Program.cs
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
using System;
namespace Calculators
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("what's your first number");
var h=double.Parse(Console.ReadLine());
Console.WriteLine("what's your second number");
var g=double.Parse(Console.ReadLine());
var Result=h + g;
Console.WriteLine("after adding the numbers result is: " + Result);
var Result1=h * g;
Console.WriteLine("after multiplying the result is: " + Result1);
var result2=h / g;
Console.WriteLine("after dividing numbers the result is: " + result2);
var result3=h-g;
Console.WriteLine("after subtracting the result is: " + result3);
}
}
}