If the user enters a letter display no thats a letter if


Receive as input a single digit. If the user enters a single digit then output "Thank You". If the user enters a letter display "No, that's a letter". If the user enters an alphabetic character that is neither a digit not a letter display invalid input

Input format:

A single digit should be entered

Ouput format:

A single line displaying a message starting "Thank You" if a digit was entered,"No, that's a letter" if a letter was enterd or "invalid data" if neither an alphabetic character not digit was entered

run 1:

Enter a digit:3

Solution Preview :

Prepared by a verified Expert
Business Management: If the user enters a letter display no thats a letter if
Reference No:- TGS02688927

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)