#include<stdio.h> #include<conio.h> main() { int num; char ans; do { printf("Enter Number : "); scanf("%d",&num); if(num%2==0) { printf(" %d is even number",num); } else { printf(" %d is odd number",num); } printf("\n Do you want to continue(Y/N) : "); ans=getche(); printf("\n\n"); } while(ans=='Y'||ans=='y'); getch(); } |
ไม่มีความคิดเห็น:
แสดงความคิดเห็น