View Feed
group-icon
Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12892 Members
Join this group to post and comment.
hari tiger
hari tiger • Dec 25, 2018

Take input from the user and then check whether it is a number or a character. if it is a character, determine whether it is in upper case or lower case. Also print its ASCII value.

Please help me in solving this progam using c language

Kaustubh Katdare
Kaustubh Katdare • Dec 25, 2018

Have you attempted it on your own yet? Please paste your attempt so that we can help you fix it. ? 

//------------------ 
#include 
...
....
if(isalpha($input) {
 // The input is a 'character'
 if(isupper(
    // The input is upper
   ...
   .....
}

if(isdigit($input) {
 // The input is a number
}
//------------------         

Does this help? You need to expand this logic. ? 

Share this content on your social channels -