Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void Main(string[] args)
- {
- int[] numbers = { 12, 2, 7, 24, 5 };
- int max = 0;
- for (int i = 0; i < numbers.Length; i++)
- {
- if (numbers[i] > max) max = numbers[i];
- }
- Console.WriteLine("Максимальное число: " + max);
- }
Add Comment
Please, Sign In to add comment