Pages

Ads 468x60px

Saturday, 2 June 2012

C Program For ASCII VALUE.


C Program For ASCII VALUE.



ASCII (American Standard Code for Information Interchange).
In this page I have shown 2 programs.First program is to print the ascii values
 with thier corresponding characters and the second program  is to print ascii
 value for given character.

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

0 comments:

Post a Comment

Total Pageviews