Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.WriteLine("Input first number");
- string userInput1 = Console.ReadLine();
- int firstNumber = int.Parse(userInput1);
- Console.WriteLine("Input second number");
- string userInput2 = Console.ReadLine();
- int secondNumber = int.Parse(userInput2);
- if (firstNumber > secondNumber)
- {
- Console.WriteLine(userInput1 + " is bigger than " + userInput2);
- }
- if (secondNumber > firstNumber)
- {
- Console.WriteLine(userInput2 + " is bigger than " + userInput1);
- }
- else
- {
- Console.WriteLine("Goodbye.");
- }
- Console.ReadLine();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement