/* Write a program to take n as input and print 1 to n in the following order.
 * 1
 * 1 2
 * 1 2 3
 * 1 2 3 4 
 * 1 2 3 4 n
 */
 
#include <stdio.h>

int main(void) {
	// your code goes here
	int n=5;
	
	for(int i=1;i<=n;i++)
	{
		for(int j=1;j<=i;j++)
			printf("%d",j);
		printf("\n");
	}
	return 0;
}
