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