using System;
namespace
Arithmathic_Operator_used_Program
{
class Program
{
static void Main(string[]
args)
{
int
a,b,c;
Console.WriteLine("Enter the value of A=");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the value of B=");
b = Convert.ToInt32(Console.ReadLine());
c = a + b;
Console.WriteLine("Line 1- the result sumation={0}",c);
c = a - b;
Console.WriteLine("Line 2- the result subtraction={0}",
c);
c = a * b;
Console.WriteLine("Line 3- the result Multipulication={0}",c);
c = a / b;
Console.WriteLine("Line 4- the result Division={0}", c);
c = a % b;
Console.WriteLine("Line 5- the result Modulas={0}", c);
c = a++;
Console.WriteLine("Line 6- the result Incremention={0}",
c);
c=a--;
Console.WriteLine("Line 7- the result Decremention={0}",c);
Console.ReadKey();
}
}
}
No comments:
Post a Comment