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 variable in c example?
What is a constant and types of constants in c?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What is a far pointer in c?
code for replace tabs with equivalent number of blanks
What is volatile, register definition in C
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
what is event driven software and what is procedural driven software?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
Write a code to generate divisors of an integer?
What is the difference between declaring a variable and defining a variable?
What is call by reference in functions?
Explain about the functions strcat() and strcmp()?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions