Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main (int argc, char *argv[])
- {
- int number = 0;
- printf("Enter a number");
- scanf("%d", &number);
- if(number%2 == 0) {
- printf("The number is even");
- }
- else {
- printf("The number is odd");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment