Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace IZ5Var1
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14. int Count = 0;
  15. int[] massiv = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 };
  16. for (int i = 0; i < massiv.Length; i++)
  17. {
  18. if (massiv[i] % 2 == 0)
  19. {
  20. Count++;
  21. }
  22. }
  23. Console.WriteLine(Count);
  24. Console.ReadKey();
  25.  
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement