Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- res=1
- echo "Maximo:"
- read max
- echo "-> 1"
- for x in $(seq 1 $max)
- do
- res=$(($res*2))
- echo "-> $res"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement