0

Can someone help me, please?

2. Write a program, enter a character, if it is an uppercase letter, change it to the corresponding lowercase letter and output it. If it is a digit, change it to the corresponding value and output it.

2nd Mar 2019, 4:58 PM
Nesmy Parice BAKALA
2 Antworten
0
To check if the character is in lowercase use islower() To change the character to Uppercase use toupper() To check if it's a digit or not use isdigit() All of the functions mentioned will be found in ctype.h library.
2nd Mar 2019, 5:40 PM
Rakibul Yeasin
Rakibul Yeasin - avatar
0
Thanks
3rd Mar 2019, 12:34 PM
Nesmy Parice BAKALA