0
I want to print triangular numbers between 1 & 100 in php using a while loop. How can i write that?
I wrote following code. But it prints 105 also which is greater than 100. How to resolve it? https://code.sololearn.com/ws6QhMfZMtC4/?ref=app
3 Answers