fr0stn1k

C#Light3.3.6_Kovylov

Feb 9th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. public static void Main(string[] args)
  2.         {
  3.             int[] numbers = { 12, 2, 7, 24, 5 };
  4.  
  5.             for (int i = 0; i < numbers.Length; i++)
  6.             {
  7.                 if (numbers[i] % 2 == 0) Console.WriteLine(numbers[i]);
  8.             }
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment