Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace LearnRSUE
- {
- class Program
- {
- static void Main()
- {
- int allNumb = 0, numbs = 0, result = 0;
- Console.Write("Введите количество чисел: ");
- allNumb = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine("\nВведите эти числа: ");
- for (int i = 1; i <= allNumb; i++)
- {
- numbs = Convert.ToInt32(Console.ReadLine());
- if (numbs % 5 == 0)
- {
- if (result < numbs)
- {
- result = numbs;
- }
- }
- }
- Console.WriteLine("\nСамое большое число: " + result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement