Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace MaxNumber
- {
- class Program
- {
- static void Main(string[] args)
- {
- string num = Console.ReadLine();
- int bigNum = int.MinValue;
- while (num != "Stop")
- {
- int n = int.Parse(num);
- if (n > bigNum)
- {
- bigNum = n;
- }
- num = Console.ReadLine();
- }
- Console.WriteLine(bigNum);
- }
- }
- }
Add Comment
Please, Sign In to add comment