Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html> <head>
- </head>
- <body>
- <?php
- $tab = array(10);
- for ($i=0;$i<10;$i++)
- {
- $tab[$i]=rand(50,60);
- echo $tab[$i]." ";
- };
- echo '<br>';
- $tab2 = array(10);
- for ($i=0;$i<10;$i++)
- {
- $tab2[$i]=rand(50,60);
- echo $tab2[$i]." ";
- };
- echo '<br>';echo '<br>';
- if ($tab==$tab2)
- echo 'sa takie same';
- else
- echo 'sa rozne';
- echo '<br>';
- $s=0;
- for ($i=0;$i<10;$i++)
- {
- $s=0;
- $s2=0;
- $s=$tab[$i];
- $s2=$tab2[$i];
- echo $s+$s2;
- echo '<br>';
- };
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement