daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Nov 18th, 2017 49 in 6 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Ca
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var n = int.Parse(Console.ReadLine());
  14.             var maxNumber =int.MaxValue;
  15.             for (var i = 1; i <= n ; i++)
  16.             {
  17.                 var num = int.Parse(Console.ReadLine());
  18.                if (num < maxNumber)
  19.                     maxNumber = num;
  20.  
  21.             }
  22.             Console.WriteLine(maxNumber);
  23.         }
  24.     }
  25. }
RAW Paste Data
Top