Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. <?php
  2.  
  3. $max = trim(fgets(STDIN));
  4. for ($x = 1; $x <= $max; $x++){
  5. for ($y=1; $y <= $max; $y++){
  6. $z = $z*$y;
  7. if($y<$max){
  8. echo $z. '-';
  9. }
  10. else{
  11. echo $z;
  12. }
  13. }
  14. echo PHP_EOL;
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement