using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AddSubMulDiv
{
class Program
{
static void Main(string[] args)
{
int a = 10;
int b = 5;
int add = a + b;
int sub = a - b;
int mul = a * b;
int div = a / b;
Console.WriteLine();
Console.WriteLine(" Addition : " + add);
Console.WriteLine();
Console.WriteLine(" Subtraction : " + sub);
Console.WriteLine();
Console.WriteLine(" Multiplication : " + mul);
Console.WriteLine();
Console.WriteLine(" Division : " + div);
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AddSubMulDiv
{
class Program
{
static void Main(string[] args)
{
int a = 10;
int b = 5;
int add = a + b;
int sub = a - b;
int mul = a * b;
int div = a / b;
Console.WriteLine();
Console.WriteLine(" Addition : " + add);
Console.WriteLine();
Console.WriteLine(" Subtraction : " + sub);
Console.WriteLine();
Console.WriteLine(" Multiplication : " + mul);
Console.WriteLine();
Console.WriteLine(" Division : " + div);
Console.ReadLine();
}
}
}
Output:
No comments:
Post a Comment