Computer Science, asked by sakshisakhare42, 8 months ago

write a c++ program which will print pattern of natural number
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15​

Answers

Answered by myjerry19120
0

Answer:

Int c = 0;

for(int i=1; i<=5 ; i++)

{

For(int j=1 ; j< i; j++)

{

c ++ ;

Printf( " %d", c) ;

}

Printf( " \n") ;

}

Similar questions