Advertisement
ZinedinZidan

zidan4

Sep 29th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int a;
  6.     printf("Enter a numbers: ");
  7.     while(scanf("%d",&a)!=EOF)
  8.     if(a%2==0)
  9.     {
  10.         printf("The number is even\n");
  11.     }
  12.     else
  13.     {
  14.         printf("The number is odd\n");
  15.     }
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement