Monday 27 August 2012

find out ascii value of given number using while loop and for loop , example

 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();
}
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: