Larvel blade script to print number tables
<table style='table-layout: fixed; width:100%;' border=1>
<tr>
@for ($i = 1; $i <= 20; $i++)
<td>
@for ($j = 1; $j <= 10; $j++)
{{ $i }} {{ '*' }} {{ $j }}
{{ '=' }}{{ $i * $j }};
<br>
@endfor
</td>
@if ($i % 10 == 0)
</tr>
@endif
@endfor
</table>
Comments
Post a Comment