Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int num;
- char check;
- do{
- printf("Please,enter a number : \n");
- scanf("%d", &num);
- if(num % 2 == 0){
- printf("The number is even.\n");
- }else{
- printf("The number is odd.\n");
- }
- printf("Want to check more y for yes and n for no ?\n");
- scanf("%c", &check);
- }while(check =='n');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement