SHARE
TWEET

Even

TaniaTanni Oct 23rd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top