NastySwipy

03. Powers of Two

Feb 17th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.08 KB | None | 0 0
  1. $num = readline();
  2. for ($i = 0; $i <= $num; $i++) {
  3.     echo 2 ** $i . "\n";
  4. }
Advertisement
Add Comment
Please, Sign In to add comment