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 an expression?
Whats s or c mean?
How can I discover how many arguments a function was actually called with?
Explain what will the preprocessor do for a program?
Why is c not oop?
how to find binary of number?
Why do we use return in c?
Combinations of fibanocci prime series
What is array in C
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What is logical error?
What is typedef example?
When is the “void” keyword used in a function?
Where can I get an ansi-compatible lint?
What are the advantages of union?