Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a;
- printf("Enter a: \n");
- scanf("%d", &a);
- /* logic */
- if (a % 2 == 0)
- {
- printf("The given number is EVEN");
- }
- else
- {
- printf("The given number is ODD");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement