KodeGod.com

043. Write a program to print following outputs in C language

1
22
333
4444
#include<stdio.h>
#include<conio.h>  
main()
{
	int i,j,k,n;
	clrscr();
	printf("Enter number : ");
	scanf("%d",&n);
	for(i=1;i<=n;i++)
	{
		for(j=1;j<=i;j++)
			printf("%d",i);
		printf("\n");
	}
	getch();
}