Saturday, August 20, 2016

Printing Box using ASCII values.


//Printing Box using ASCII values.

#include<stdio.h>
void main()
{
 int i;
 printf("\t%c",220);
 for(i=0; i<10; i++)
     printf("%c", 254);

 printf("%c\n",220);
 printf("\t%c   INDIA  %c\n",221,222);
 printf("\t%c",223);
 for(i=0; i<10; i++)
     printf("%c", 254);
 printf("%c",223);
}



Output of the Program:




You may also like to learn following programs:

No comments:

Post a Comment