+ 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)
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;
}
}
0
Yaa, but I want to take input from user