Monday, 7 January 2013

Write a program to fill the entire screen with a smiling face. The smiling face has an ASCII value 1. For this task you should know the height and width of your screen


#include<stdio.h>
void main()
{
    int i,j,smile=78,g=20;
    for(i=0;i<g;i++)
    {
        for(j=0;j<smile;j++)
        {
            printf("%c",1);
        }
        printf("\n");
    }
}

No comments:

Post a Comment