SHARE
TWEET

Untitled

a guest Jun 25th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $n= intval(readline());
  4.  
  5. for ($i=chr(97); $i<=chr(97+$n-1); $i++){
  6.        for ($j=chr(97); $j<=chr(97+$n-1); $j++){
  7.                 for ($k=chr(97); $k<=chr(97+$n-1); $k++){
  8.                         echo $i.$j.$k;
  9.                     echo PHP_EOL;
  10.                 }
  11.     }
  12.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top