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