Page Rank Checker

Saturday 5 July 2014

Fill Entire Screen With Smiling Faces Program In C



This article is from solution of Let Us C by Yashwant Kanetkar. I also posted many another articles regarding solutions of Let Us C. If you have any problem regarding solution then give comment, I will surely reply your question.

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

Ans.

#include<stdio.h>
#include<conio.h>
void main()
{
    clrscr();
    int n=1, x, y=0;
    for(;y<=150;y++)
    {
        x=0;
        for(;x<=150;x++)
        {
            printf("%c",n);
        }
    }
    getch();
}