45 101
Assignments Done
98%
Successfully Done
In February 2017
Your physics homework can be a real challenge, and the due date can be really close — feel free to use our assistance and get the desired result.
Be sure that math assignments completed by our experts will be error-free and done according to your instructions specified in the submitted order form.
Our experts will gladly share their knowledge and help you with programming homework. Keep up with the world’s newest programming trends.

Answer on C++ Question for Vicky

Question #26122
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.
Expert's answer
#include <stdio.h>
#include <ctype.h>

int main()
{
int ch;
printf("Enter a character: ");
ch = getchar();

if (islower(ch))
puts("0");
else
puts("1");
return 0;
}
tip Your question requires fast and guaranteed response?   Please   SUBMIT IT

Comments

No comments. Be first!

Leave a comment

Ask Your question