how do write a program to print this series 1 2 2 3 3 3 using for or while loop?
Answers
Answered by
0
Answer:
cin>>n;
for(int i=1;i<n;i++)
for(int j=0;j<=i;j++)
cout<<i;
Similar questions