IsraelTorres

exponential

Nov 15th, 2016
92
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. num=1; exx=1
  3. for x in {1..7}; do
  4. echo -en "$x\t$num\t$exx\n"
  5. #echo $num
  6. exx=$((2**num))
  7. #echo $exx
  8. num=$((num*2))
  9.  
  10. #echo $((2**))
  11. done
  12.  
  13. #1  1   1
  14. #2  2   2
  15. #3  4   4
  16. #4  8   16
  17. #5  16  256
  18. #6  32  65536
  19. #7  64  4294967296
RAW Paste Data