hari tiger
hari tiger
Computer Science
25 Dec 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

25 Dec 2018

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

Sagar Paranjpe

Sagar Paranjpe

Mechanical
26 Dec 2018
//------------------ 
#include <ctype.h>
...
....
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 -

Only logged in users can reply.