find out ascii value of given number using while loop and for loop , example
how to write program for find out ascii value of the given number
# include<stdio.h>
void main()
{
int n=1;
clrscr();
while(n<255)
{
printf("\t%d\t%c",n,n);
n++;
}
getch();
}
second example
#include<stdio.h>
void main()
{
int i;
clrscr();
for(i=1;i<=100;i++)
{
printf(" %d\t %c",i,i);
}
getch();
}
how to write program for find out ascii value of the given number
# include<stdio.h>
void main()
{
int n=1;
clrscr();
while(n<255)
{
printf("\t%d\t%c",n,n);
n++;
}
getch();
}
second example
#include<stdio.h>
void main()
{
int i;
clrscr();
for(i=1;i<=100;i++)
{
printf(" %d\t %c",i,i);
}
getch();
}
0 comments: