Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $max = trim(fgets(STDIN));
- for ($x = 1; $x <= $max; $x++){
- for ($y=1; $y <= $max; $y++){
- $z = $z*$y;
- if($y<$max){
- echo $z. '-';
- }
- else{
- echo $z;
- }
- }
- echo PHP_EOL;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement