Question No.5
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.)
Answer Solved by WAJID
#include
#include
#include
void main(void)
{
do{
cout<<"Enter a letter : \xdb\t"<
cout<
cout<<"\n !Press c to continue or any key to exit."<
}while(getch()=='c');
}
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.)
Answer Solved by WAJID
#include
#include
#include
void main(void)
{
do{
cout<<"Enter a letter : \xdb\t"<
}
No comments:
Post a Comment