Computer Science, asked by pratikshajadhav2004, 11 months ago

how do write a program to print this series 1 2 2 3 3 3 using for or while loop?​

Answers

Answered by varadhabala29
0

Answer:

cin>>n;

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

for(int j=0;j<=i;j++)

cout<<i;

Similar questions