Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void Main()
- {
- Console.Write("Enter size:");
- int[] num = new int[int.Parse(Console.ReadLine())];
- int max = 0;
- for (int i = 0; i < num.Length; i++)
- {
- num[i] = Math.Abs(int.Parse(Console.ReadLine()));
- }
- foreach ( int i in num)
- {
- max = max < i ? i : max;
- }
- Console.WriteLine("The biggest module =" + max);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment