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.
2 Réponses
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.
0
Thanks