Full width home advertisement

HTML

Tech News

Ad

 Write a c program to generate following output | c * programs



*
**
***
****
*****

#include <stdio.h>
#include <conio.h>

void main()
{
	int j, a;
	clrscr();
	for (j = 1; j <= 5; j++)
	{
		for (a = 1; a <= j; a++)
		{
			printf("*");
		}
		printf("\n");
	}
	getch();
}

Thank you for visiting Seeya again

No comments:

Post a Comment

Bottom Ad [Post Page]