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 / shrikantauti
use if condition
if(ch>=65 &&ch<=90)
{
scanf("%c",&ch);
}
else
{
break;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
What is scope and lifetime of a variable in c?
what is a c-language.what is do.
What is the difference between functions getch() and getche()?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
What are the valid places to have keyword “break”?
How can you increase the size of a statically allocated array?
main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); } what is the output?
How does free() know explain how much memory to release?
What is pointers in c with example?
What is your stream meaning?
can we access one file to one directory?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...