Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>First Steps Into PHP</title>
- </head>
- <body>
- <!--Write your PHP Script here-->
- <?php
- for($i = 1; $i<=9; $i++) {
- for($j = 1; $j <= 5; $j++) {
- if($i == 1 || $i == 5 || $i ==9 || ($i>=2 && $i<5 && $j == 1) || ($i>=6 && $i<9 && $j == 5)) {
- echo "<button style='background-color:blue'>1</button>";
- } else {
- echo "<button>0</button>";
- }
- }
- echo "<br>";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement