Code Snippets C

//Declaration: int isupper(int ch);
//Return: returns nonzero if ch is an uppercase letter;
otherwise zero is returned.
#include
#include
int main(void)
{
char ch;
for(;;) {
ch = getchar();
if(ch == '.'){
break;
}
if(isupper(ch)){
printf("%c is uppercase\n", ch);
}
}
return 0;
}
/*
g
x
r
y
R
R is uppercase
.
*/