Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int data[] = { 3, 2, 15, 5, 9, 8 };
  7.  
  8.     for (int i = 0; i < 6; i++)
  9.     {
  10.         if (data[i] % 2 == 0)
  11.             printf("yes!\n");
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement