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;
- namespace ShacharDaKing
- {
- class Program
- {
- static void Main(string[] args)
- {
- Start:
- int a, b;
- char sup;
- Console.WriteLine("Type 1 for Adding Or Type 2 For Multiplier Or Type 3 For Dividing Or Type 4 For Removing");
- sup = char.Parse(Console.ReadLine());
- if (sup == '1')
- {
- Console.WriteLine("Type 2 Numbers");
- a = int.Parse(Console.ReadLine());
- b = int.Parse(Console.ReadLine());
- Console.WriteLine(a + b);
- }
- else if (sup == '2')
- {
- Console.WriteLine("Type 2 Numbers");
- a = int.Parse(Console.ReadLine());
- b = int.Parse(Console.ReadLine());
- Console.WriteLine(a * b);
- }
- else if (sup == '3')
- {
- Console.WriteLine("Type 2 Numbers");
- a = int.Parse(Console.ReadLine());
- b = int.Parse(Console.ReadLine());
- Console.WriteLine(a / b);
- }
- else if (sup == '4')
- {
- Console.WriteLine("Type 2 Numbers");
- a = int.Parse(Console.ReadLine());
- b = int.Parse(Console.ReadLine());
- Console.WriteLine(a - b);
- }
- else
- Console.WriteLine("You didnt type the required options");
- Console.ReadLine();
- goto Start;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement