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.)
1
Expert's answer
2013-04-10T08:11:00-0400
#include<iostream> #include<ctype.h> using namespace std;
int main() { char letter;
cout<<"Enter letter : "; cin>>letter; if(islower(letter) == 0) & cout<<"letter is uppercase\n"; else & cout<<"letter is lowercase\n";
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment