/* Convert Capital Letter Or Small Letter To ASCII Value */
/* ASCII Value */
/* A To Z=65 To 90 (Capital Letter) */
/* a To z=97 To 122 (Small Letter) */
/* 0 To 9=48 To 57 (Digit) */
/* <48 (Special Charecter) */
/* Suchetan Dey */
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
char b;
printf("Enter Any Capital Or Small Letter ");
scanf("%c",&b);
printf("The ASCII Value Of This Letter Is %d",b);
getch();
}
The Output is :-
/* ASCII Value */
/* A To Z=65 To 90 (Capital Letter) */
/* a To z=97 To 122 (Small Letter) */
/* 0 To 9=48 To 57 (Digit) */
/* <48 (Special Charecter) */
/* Suchetan Dey */
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
char b;
printf("Enter Any Capital Or Small Letter ");
scanf("%c",&b);
printf("The ASCII Value Of This Letter Is %d",b);
getch();
}
The Output is :-
No comments:
Post a Comment