Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources

055. Write a program to print following output

By September 18, 2012 February 5th, 2018 No Comments
******************************* 
*                             *
*                             *  
*                             *
*******************************
#include<stdio.h>
#include<conio.h>  
main()
{
	int i,j;
	clrscr();
	for(i=1;i<=80;i++)
		printf("*");
	for(i=2;i<=23;i++)
	{
		printf("*");
		for(j=2;j<=79;j++)
			printf(" ");
		printf("*");
	}
	for(i=1;i<=80;i++)
		printf("*");

	getch();

}


Leave a Reply

DEMO01