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