> #include <stdio.h>
int main(void)
{
char a;
printf("Enter a capital alphabet: ");
do{
scanf("%c", &a); }
while(a>=65 && a<=90);
}
I am building a program which only takes one uppercase letter as input. But it doesn't prompt to input again, even if I input a lowercase letter, a number, or a symbol.
Where am I going wrong in this?