fr0stn1k

C#Light3.3.5_Kovylov

Feb 9th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public static void Main(string[] args)
  2. {
  3. int[] numbers = { 12, 2, 7, 24, 5 };
  4. int min = 99;
  5.  
  6. for (int i = 0; i < numbers.Length; i++)
  7. {
  8. if (numbers[i] < min) min = numbers[i];
  9. }
  10. Console.WriteLine("Минимальное число: " + min);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment