+ 1

I don't know why this code is not working ,I have used two different methods ,but one of them givesoutput as0,(numeric triangle)

https://code.sololearn.com/wj7RTz7GOC3H/?ref=app

4th Aug 2020, 7:39 PM
kuldeep singh gurjar
kuldeep singh gurjar - avatar
2 Answers
+ 1
I'm not sure what you're trying to do, but readline() reads a line from the user, and I'm not sure SoloLearn supports that function. You're also not giving explode a valid delimiter. You could try to replace $a and $b with hardcoded values. eg. $a = 10; $b = 15; for($i = 0; $i <= $b; $i++){ for($c = $a; $c <= $i; $c++){ echo $c; } }
4th Aug 2020, 9:18 PM
Fredrik Kaspersen
0
Yaa, but I want to take input from user
4th Aug 2020, 9:23 PM
kuldeep singh gurjar
kuldeep singh gurjar - avatar