Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table>
- <tr>
- <?
- $range = range(1,99);
- foreach($range as $zahl){
- if(($zahl % 2 )!= 0){
- if(($zahl % 3 == 0)){
- echo '<td>'. $zahl .'</td></tr><tr>';
- }
- else echo '<td>'. $zahl .'</td>';
- }
- elseif(($zahl % 2 == 0)){
- if(($zahl % 3 ==0)){
- echo '<td style="font-weight:bold">'. $zahl .'</td></tr><tr>';
- }
- else echo '<td style="font-weight:bold">'. $zahl .'</td>';
- }
- }
- ?>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement