Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication2
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Enter 1st Number: ");
- int number1 = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine("Enter 2nd Number: ");
- int number2 = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine("Addition :" + Add(number1, number2));
- Console.WriteLine("Subtraction :" + Subtract(number1, number2));
- Console.WriteLine("Multiplication :" + Multiply(number1, number2));
- Console.WriteLine("Divide :" + Divide(number1, number2));
- Console.ReadKey();
- }
- static int Add(int a, int b)
- {
- int number = a + b;
- return number;
- }
- static int Subtract(int a, int b)
- {
- int number = a - b;
- return number;
- }
- static int Multiply(int a, int b)
- {
- int number = a * b;
- return number;
- }
- static int Divide(int a, int b)
- {
- int number = a / b;
- return number;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement