Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int n;
- char c;
- do
- {
- printf("Enter a number:");
- scanf("%d",&n);
- if(n%2==0)
- {
- printf("Your number is even\n");
- }
- else
- {
- printf("Your number is odd\n");
- }
- printf("Want to check more? Enter any key to continue or ānā to exit:");
- scanf("\n%c", &c);
- }
- while(c!='n');
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement