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;
- string name;
- Console.WriteLine ("Type Multiplier for multiply action or Add for adding action");
- name = Console.ReadLine ();
- if (name == "Multiplier")
- {
- Console.WriteLine ("Type 2 numbers");
- a = int.Parse (Console.ReadLine ());
- b = int.Parse (Console.ReadLine ());
- Console.WriteLine (a * b);
- }
- else if (name == "Add")
- {
- 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 Add or multiplier");
- Console.ReadLine ();
- goto Start;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement