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();
}


 

Comments

Popular posts from this blog

Tip of the Day # 13

Governor Generals of Pakistan

Tip of the Day# 12