Write a program to fill the entire screen with a smiling face. The smiling face has an ASCII value 1.
#include <stdio.h>
#include <conio.h>
void main ( )
{
int m, n;
clrscr ( );
for ( m = 0; m <= 24; m ++ ) /* Fills rows 0 to 24 */
for ( n = 0; n <= 158; n ++ ) /* Fills columns 0 to 158 */
printf ("%c", 1);
getch ( );
}
No comments:
Post a Comment