76 285
Assignments Done
Successfully Done
In May 2019

Answer to Question #28121 in C++ for ba

Question #28121
5. A library function, islower(), takes a single character (a letter) as an argument and returns a
nonzero integer if the letter is lowercase, or zero if it is uppercase. This function requires the header
file CTYPE.H. Write a program that allows the user to enter a letter, and then displays either zero or
nonzero, depending on whether a lowercase or uppercase letter was entered. (See the SQRT
program for clues.)
Expert's answer
using namespace std;

int main()
char letter;

cout<<"Enter letter : ";
if(islower(letter) == 0)
& cout<<"letter is uppercase\n";
& cout<<"letter is lowercase\n";

return 0;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions