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(0,2);
- };
- echo '<br>';
- $tab2 = array(10);
- for ($i=0;$i<10;$i++)
- {
- $tab2[$i]=rand(0,2);
- };
- sort ($tab);
- sort ($tab2);
- if($tab==$tab2)
- {
- echo 'rowne';
- }
- else echo 'inne';
- echo '<br>';
- for ($i=0;$i<10;$i++)
- {
- echo $tab2[$i]." ";
- };
- echo '<br>';
- for ($i=0;$i<10;$i++)
- {
- echo $tab[$i]." ";
- };
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement