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

Replies

  • Kaustubh Katdare
    Kaustubh Katdare

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

  • Sagar Paranjpe
    Sagar Paranjpe
    //------------------ 
    #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. ? 

You are reading an archived discussion.

Related Posts

HOW TO CALCULATE THE MINIMUM TORQUE REQUIRED TO MOVE IN THE 30 DEGREE SLOPE AREAS..
I am a Computer Science Student and I want my Final Year Project with Domain Artificial Intelligence and sub Domain Aviation. Something innovative ? any ideas or suggestion regarding this
How to create check box through XML file in teamcenter PLM software
So guy suggests me some open source project that i can take some knowledge from it.
A hardcore techinal event with an intresting steps of rounds that can make it more intresting for students to participate. Moreover, related to structures, infras etc.