C# program to perform the arithmetic operations
Program.cs
Console.WriteLine("10+20={0}\n10-20={2}\n10*20={1}\n10/20={3}", 10 + 20, 10 * 20, 10 - 20, 10 / 20);
Output
kodingwindow@kw:~/csharp$ dotnet run
10+20=30
10-20=-10
10*20=200
10/20=0  
kodingwindow@kw:~/csharp$ 
Advertisement