#include <stdio.h> int main() { char ch; printf("Enter character"); scanf("%c",&ch); if(ch>='A' && ch<='Z') { printf("%c is capital" ,ch); } else { printf("%c is not a capital", ch); } return 0; }
Enter character R
R is capital
Enter character r
r is not a capital