WELCOME

Welcome to KoDes4U

Pages

Thursday, March 3, 2011

program to print ascii characters



/*Write a C program to print all the ASCII characters available in C
with an interval of 10 ASCII values at each enter hit.
coded by KoDes4U.blogspot.com*/


#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main()
  {
    int i;
    clrscr();
    for(i=1;i<=255;i++)
      {
        if(i%10==0)
          {
            getch();
            printf("\n");
          }
        else
          printf("%d=%c\t",i,i);
          delay(1500);
      }
    getch();
  }

No comments:

Post a Comment