#include<stdio.h>
int main ()
{
char ch;
scanf("%c", &ch);
if (ch == '1' || ch == '2' || ch == '3' || ch == '4' || ch == '5' || ch == '6' || ch == '7' || ch == '8' || ch == '9' || ch == '0'){
printf("didit\n");
}
else{
printf("not a digit\n");
}
return 0;
}
int main ()
{
char ch;
scanf("%c", &ch);
if (ch == '1' || ch == '2' || ch == '3' || ch == '4' || ch == '5' || ch == '6' || ch == '7' || ch == '8' || ch == '9' || ch == '0'){
printf("didit\n");
}
else{
printf("not a digit\n");
}
return 0;
}
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন