Wednesday 5 November 2014

ASCII to character Conversion

/*A C program to implement ASCII code to character Conversion.
Author: Mangilal Saraswat
Date: 5 November, 2014*/

#include<stdio.h>
#include<conio.h>

void main()
{
 int ascii;
 clrscr();
 printf("ASCII to Character converter\n");
 printf(">Give ASCII (range 0 to 255) as input and get character.\n");
 printf(">Give input 256 to exit from here.\n");
 while(1)      //loop execute untill exit by entering 256
 {
  printf("ASCII value: ");
  scanf("%d",&ascii);
  if(ascii==256) break;
  else printf("Character: %c\n",ascii);
 }
}


No comments:

Post a Comment

You are welcome, your comment helps me to make this blog more better.