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


Please Help Members By Posting Answers For Below Questions

What is variable in c example?

596


What is a constant and types of constants in c?

606


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1711


What is a far pointer in c?

599


code for replace tabs with equivalent number of blanks

1644






What is volatile, register definition in C

693


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.

655


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

1701


what is event driven software and what is procedural driven software?

2019


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1449


Write a code to generate divisors of an integer?

645


What is the difference between declaring a variable and defining a variable?

726


What is call by reference in functions?

573


Explain about the functions strcat() and strcmp()?

601


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

615