Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string val1;
- string val2;
- int res;
- input1 = Console.ReadLine();
- val1 = input1;
- res = Convert.ToInt32(val1);
- input2 = Console.ReadLine();
- val2 = input2;
- res = Convert.ToInt32(val2);
- Console.WriteLine("Do you want to add, subtract, divide, or multiply?");
- input3 = Console.ReadLine();
- if input3 == "Add"
- Console.WriteLine(numeral1 + numeral2);
- if input3 == "Subtract"
- Console.WriteLine(numeral1 - numeral2);
- if input3 == "Divide"
- Console.WriteLine(numeral1 / numeral2);
- if input3 == "Multiply"
- Console.WriteLine(numeral1 * numeral2);
- if else
- Console.WriteLine("Sorry, I didn't understand what you inputted.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement