accept character from keyboard untill the user presses the
enter key.If the user enters any character other than upper
case(A-Z)alphabets program should stop taking any input
Answer Posted / shrikantauti
use if condition
if(ch>=65 &&ch<=90)
{
scanf("%c",&ch);
}
else
{
break;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the 32 keywords in c?
difference between Low, Middle, High Level languages in c ?
why programs in c are running with out #include
What is the use of a static variable in c?
The __________ attribute is used to announce variables based on definitions of columns in a table?
What is a newline escape sequence?
swap 2 numbers without using third variable?
Write a program to reverse a string.
Why calloc is better than malloc?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
What are register variables? What are the advantage of using register variables?
what are the 10 different models of writing an addition program in C language?
What is the difference between c &c++?
What is function in c with example?
Why structure is used in c?