Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace IZ5Var1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int Count = 0;
- int[] massiv = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 };
- for (int i = 0; i < massiv.Length; i++)
- {
- if (massiv[i] % 2 == 0)
- {
- Count++;
- }
- }
- Console.WriteLine(Count);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement