Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace biggestnum
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("n = ");
- var n = int.Parse(Console.ReadLine());
- var max = -10000000000000;
- for (var i = 0; i < n; i++)
- {
- var num = int.Parse(Console.ReadLine());
- if (num > max)
- max = num;
- }
- Console.WriteLine("max = " + max);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement