Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <h1>Practica 9</h1>
- <?php
- $num=rand(1,5);
- if($num==1){
- echo "<font color='red'>uno</font>";
- }
- if($num==2)
- {
- echo "<font color='blue'>dos</font>";
- }
- if($num==3)
- {
- echo "<font color='#00FFFF'>tres</font>";
- }
- if($num==4)
- {
- echo "<font color='green'>cuatro</font>";
- }
- if ($num==5)
- {
- echo "<font color='orange'>cinco</font>";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement