fr0stn1k

C#Light3.3.4_Kovylov

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