Home » C » Solved Programs » Print ASCII values and uppper case of any character
C program to print ASCII values & uppper case of char
#include<stdio.h>
int main(){
char ch;
printf("\n Enter any character : ");
scanf("%c",&ch);
if(ch>=97 && ch<=122)
ch -=32;
printf("\n The ASCII Value is : %d", ch);
printf("\n The Upper Case Letter is : %c ", ch);
reutrn 0;
}