/* To print a number in the following manner
	1
	2 2
	3 3 3
*/

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