Advertisement
fahim-ahmed2019

Even/odd

Oct 7th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. { int num;
  4. printf("Enter press an integer\n");
  5. scanf("%d",&num);
  6. if(num%2==0)
  7. printf("Even");
  8. else
  9. printf("odd");
  10.  
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement