Page

C program for finding the ascii value

#include<stdio.h>
#include<conio.h>
void main()
{
int a,n;
clrscr();
printf("Enter the number");
scanf("%d",&n);
while(n>0)
{
a=n%10;
a=a+1;
printf("%c\n",a);
n=n/10;
}
getch();
}

No comments:

Post a Comment