answersLogoWhite

0

#include

int main()

{

char letter=0;

do

{

std::cout<<"Enter any letter: ";

std::cin>>letter;

if((letter<'A'(letter>'Z'&&letter<'a')letter>'z'))

{

std::cout<<'\''<

letter=0;

}

} while(!letter);

std::cout<<"You entered the letter \'"<

}

Output

Enter any letter: 1

'1' is not a letter!

Enter any letter: 2

'2' is not a letter!

Enter any letter: !

'!' is not a letter!

Enter any letter: a

You entered the letter 'a'

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What is a full sentence using capitol and capital?

A capitol of a country needs a capital on the first letter.


What stands for recess?

a recessive allele is shown using a lower case letter a dominant allele is shown using a capital letter


What rewards does the Capital One Rewards Program offer?

The Capital One Rewards Program offer No Hassle Miles, No Hassle Cash and No Hassle Points Rewards. Those rewards are trademarks of Capital One. One can accumulate flight mileage when using a Capital One credit card to book flights. One can get cashbacks and points when using the credit card while shopping.


Should you use capital letter when using the term lunch and learn?

Yes, &quot;Lunch and Learn&quot; is typically capitalized as it is a specific type of event or program where employees gather during lunchtime to learn about a specific topic.


What is the advantage of using a capitol one mastercard?

There are many advantages of using a Capital One Mastercard. Some of these advantages include the security of zero dollar fraud liability and the Capital One No Hassle rewards program.


What are the potential drawbacks or disadvantages of using the Capital One cash rewards program for earning rewards?

Potential drawbacks of using the Capital One cash rewards program include limited redemption options, high interest rates on credit cards, and potential fees for late payments or exceeding credit limits.


Does a list need capital letters?

No, capital letters are not necessary for a list. However, using capital letters for the first letter of each item in a list can improve readability and presentation.


What 3 occasions when you should use a capital letter?

At the beginning of a sentence. When using a proper noun


What does the point represent?

the point is represent location , it has no dimension and it is named using capital letter\s .


Write a program that read phrase and print the number of lower-case letter in it using function of counting?

write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program


Should Simile start with a capital?

no. its not a place, it not a person, and it should not be a capital letter.


Why should you avoid using all capital letters in your email?

A letter composed in all capitals appears to be shouting.