Is it a uppercase char
#include <ctype.h> #include <stdio.h> int main(void) { char ch; for(;;) { ch = getchar(); if(ch == '.') break; if(isupper(ch)) printf("%c is uppercase\n", ch); } return 0; }