1. WAP TO PRINT ALL THE ASCII VALUES AND THEIR EQUIVALENT CHARACTERS.
(Due to space-problem on the screen, ASCII-value is only taken upto
190. Otherwise, range of ASCII value is - [0 -255] ) */
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
clrscr();
i=0;
while(i<=190)
{
if(i<=22)
{
printf("%d - %c\n",i,i);
}
else if(i<=46)
{
gotoxy(10,i-22);
printf(" %d - %c\n",i,i);
}
else if(i<=70)
{
gotoxy(20,i-46);
printf(" %d - %c\n",i,i);
}
else if(i<=94)
{
gotoxy(30,i-70);
printf(" %d - %c\n",i,i);
}
else if(i<=118)
{
gotoxy(40,i-94);
printf(" %d - %c\n",i,i);
}
else if(i<=142)
{
gotoxy(50,i-118);
printf(" %d - %c\n",i,i);
}
else if(i<=166)
{
gotoxy(60,i-142);
printf(" %d - %c\n",i,i);
}
else if(i<=190)
{
gotoxy(70,i-166);
printf(" %d - %c\n",i,i);
}
i++;
}
getch();
}