#include<stdio.h>
#include<ctype.h>
int main() {
int apple = 'f';
if( isalpha(apple)) {
if( isupper(apple)) {
printf("%c is an upper case letter", apple);
}else{
printf("%c is a lower case letter", apple);
}
}
else {
if( isdigit(apple)) {
printf("%c is a number", apple);
}else {
printf("%c is a OMG WTF is that!? ", apple);
}
}
return 0 ;
}
Comments
Post a Comment