Accept The Character and Print the Corresponding ASCII value Using C- Program - Learn Engineering

All the news and updates relevant to Engineering. You can also Write a post here

Breaking

Tuesday, June 9, 2020

Accept The Character and Print the Corresponding ASCII value Using C- Program

Learn C programming

Question

Accept The Character and Print the Corresponding ASCII value

Sample TestCase Expected Output

1. AA:65


2. ZZ:90


Answer

#include <stdio.h>

int main()
{
    char ch;
    scanf("%c",&ch);
    printf("%c:%d",ch,ch);
    return 0;
}

Click here |👉 What is ASCII code?👈

Comment What problem Do you Need...

Follow Us For More...

1 comment: