CPP-Loops- number pyramids

 1
123

12345
1234567
123456789

In the lecture, this problem is solved using the while loop . How can i solve it using the for loop?

@kalwani.aryan hey aryan visit to this link here I implement this code using for loops.
number pyramids using for loops.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.