Ad

Chapter - 4: The Loop Control Structure

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


Ad
E
Sections
2
Exercises
#include<stdio.h>
#include<conio.h>
int main()
{
	int i,a=1;
	for(i=0;i<2800;i++)//infinite loop also can be used
	{
		printf("%c", a);
	}
	getch();
	return 0;
}
Ad

© 2024 Garbage Valuegarbage value logo