Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 #include stdio h?

1178


How can I recover the file name given an open stream or file descriptor?

1140


What is the correct code to have following output in c using nested for loop?

1120


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

1204


Why & is used in c?

1247


Are the variables argc and argv are local to main?

1360


What is the advantage of an array over individual variables?

1293


Explain what does it mean when a pointer is used in an if statement?

1106


How arrays can be passed to a user defined function

1069


What is c mainly used for?

1118


How old is c programming language?

1063


What are the different types of C instructions?

1373


What is a substring in c?

1083


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?

1263


Explain what is gets() function?

1118