Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace LoopZad3
- {
- class Loop_zad3
- {
- static void Main(string[] args)
- {
- Console.Write("Enter value count:");
- int n = int.Parse(Console.ReadLine());
- int[] nombers = new int[n];
- for (int i = 0; i < n; i++)
- {
- nombers[i] = int.Parse(Console.ReadLine());
- }
- int max = nombers.Max();
- int min = nombers.Min();
- Console.WriteLine("max= " + max);
- Console.WriteLine("min= " + min);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement