answersLogoWhite

0


Best Answer

#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

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: In C plus plus Using do-while write a program to check that the user has typed a letter The program will not stop until the user types a small or capital letter?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.


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 does it mean to begin a word with capital letters?

Beginning a word with capital letters usually signifies that it is a proper noun, such as a name of a person, place, or organization. It is a way to give importance and distinction to that specific word within a sentence.


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


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

A letter composed in all capitals appears to be shouting.


What do you do if someone took your account?

make another new account or change the old account's password using number, capital letter and lower case letter


In excel how can you write capital letters in cell without using caps lock?

Use the shift key or find a capital letter somewhere else and copy &amp; paste into the cell.


Does a word have to start with a capital letter after?

Yes, in most cases, a word should start with a capital letter after a period. This is a grammar rule that helps to indicate the start of a new sentence. However, there are exceptions such as in abbreviations or when using certain punctuation marks like a question mark or exclamation point at the end of a sentence.