ASCII code values using while loop
Write a program to print out all the ASCII values and their equivalent character using a while loop.The ASCII values vary from 0 to 255.
#include
#include
void main(void)
{
int a=0,s;
while(a<255)
{
printf("%c is %d\t",a,a);
a++;
}
getch();
}
#include
#include
void main(void)
{
int a=0,s;
while(a<255)
{
printf("%c is %d\t",a,a);
a++;
}
getch();
}
Comments
Post a Comment