I found the question on google as follows:
When entering: 4, 7, 3, 6, 7
The output is as follows:
81
40 41
21 19 22
11 10 9 13
4 7 3 6 7
I can only try the following:
for($i = 1; $i<=5;$i++){
for($j=0; $j<$i; $j++){
echo "4";
}
echo "<br/>";
}
Next time i'm confused
Any solution to solve my problem?
source
share