Advertisement
aiNayan

3(iii)

Nov 3rd, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int a, b;
  5. printf("Enter the number: ");
  6. scanf("%d", &a);
  7. if (a % 2 == 0)
  8. printf("%d is even", a);
  9. else
  10. printf("%d is odd", a);
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement