using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class CalcAvgPerc
{
static void Main(string[] args)
{
int a, b;
Console.WriteLine("Calculating..");
System.Threading.Thread.Sleep(2000);
Console.WriteLine("Enter the two numbers");
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
Console.WriteLine("Adding two numbers");
Console.WriteLine("Addition of {0} + {1} is : {2}", a, b, a + b);
Console.WriteLine("Subtracting two numbers");
Console.WriteLine("Subtracting of {0} - {1} is: {2}", a, b, a - b);
Console.WriteLine("Multiplication of two numbers");
Console.WriteLine("Multiplication of {0} * {1} is : {2}", a, b, a * b);
Console.WriteLine("Dividing of two numbers");
Console.WriteLine("Dividing of {0}/{1} is:{2}", a, b, (float)a / b);
Console.ReadKey();
}
}
}This program for Basic operations in C#.
