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.

hari tiger

hari tiger

@hari-qxlOj6 Oct 26, 2024

Please help me in solving this progam using c language

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Dec 25, 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

    @sagar-r9LGI9 Dec 25, 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. ?