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;
- using System.Threading.Tasks;
- namespace _06_MinNum
- {
- class minNumber
- {
- static void Main(string[] args)
- {
- int number = int.Parse(Console.ReadLine());
- int min = 2000000000;
- for (int i = 1; i <= number; i++)
- {
- int num = int.Parse(Console.ReadLine());
- if (num < min)
- {
- min = num;
- }
- }
- Console.WriteLine("Min = " + min);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment