Write a program to fill the entire screen with a smiling face. The smiling face has an ASCII value 1.





 /*Program to print smile on output screen

  Author:Priyanshu, Date: Decmber10,2020*/


#include<stdio.h>

#include<conio.h>

main()

  {

     int i;

     char ch=1; //ASCII value for smilling face is 1

     clrscr();

     for(i=0;i<2000;i++)

       {

  printf("%c",ch);

       }

     getch();

     return(0);

  }

Comments