Advertisement
TaniaTanni

Even

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