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 is #include stdio h?
How can I recover the file name given an open stream or file descriptor?
What is the correct code to have following output in c using nested for loop?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Why & is used in c?
Are the variables argc and argv are local to main?
What is the advantage of an array over individual variables?
Explain what does it mean when a pointer is used in an if statement?
How arrays can be passed to a user defined function
What is c mainly used for?
How old is c programming language?
What are the different types of C instructions?
What is a substring in c?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
Explain what is gets() function?