Computer Science, asked by razanishar7864u0, 10 months ago

1
1 2
1 2 3
1 2 3 4 5
1 2 3 4 5 6 7.

Write a program to display the following patterns.

Answers

Answered by aviralrastogi0p4uudc
1

Answer:

The focllowing code is in C.

int i,j;

for( i = 1 ; i <= N ; i++ ){ //replace N with number of lines

       for( j = 1 ; j <= i ; j++ ){

               printf("%d", j );

       }

}

Similar questions