knowledgediarybd.com

Your Virtual Knowledge Campus







Displaying ASCII Value,Upper Case character,Lower Case character in C Programming.

Dear Reader,Here are Some C Program about ,displaying  ASCII Value,Upper Case character ,Lower Case character.

#A program that read any character and display ASCII value

#include<stdio.h>
int main()
{
char n;
printf("Enter any character: ");
scanf("%c",&n);
printf("ASCII Value of %c = %d",n,n);
return 0;
}

#A program that read lower case character and display in Upper case

#include<stdio.h>
int main()
{
char n;

printf("Enter any lower case character: ");
scanf("%c",&n);
printf(" In Upper case it is=%c",n-32);
return 0;
}

#A program that read any upper case character and display in Lower case

#include<stdio.h>
int main()
{
char n;

printf("Enter any upper case character: ");
scanf("%c",&n);
printf(" In Lower case it is=%c",n+32);
return 0;
}

More Similar C Program:

#A program that read two integer and display Division & Remainder.

#A program that read two integer and display summation, subtraction, multiplication.

Related Post or You May Like:

knowledgediarybd.com © 2017
shares