#include <stdio.h>
void main()
{
char x, y;
printf("Input an alphabet in capital letter: ");
scanf("%c", &x);
y = x + 32; //difference of the ASCII values of small and capital alphabet is 32.
printf("%c in small letter is %c.", x, y);
}
void main()
{
char x, y;
printf("Input an alphabet in capital letter: ");
scanf("%c", &x);
y = x + 32; //difference of the ASCII values of small and capital alphabet is 32.
printf("%c in small letter is %c.", x, y);
}
Comments
Post a Comment