C Language
#include<stdio.h> #include<conio.h> void main( ) { int n, i, j; clrscr( ); printf("Enter Number of Lines to be Printed = "); scanf("%d", & n); for (i = 1; i < = n; i++) { for (j = 1; j < = i; J++) { printf("%d", j); } printf("\n"); } getch( ); } /*OUTPUT*/ Enter Number of Lines to be Printed = 6 1 12 123 1234 12345 123456