Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- index=0
- echo Printing 0-4
- while (test "$index" -lt 5)
- do
- echo $index
- let index=index+1
- done
- echo Please enter the number of iterations
- read index
- while (test "$index" -gt 0)
- do
- echo $index
- let index=index-1
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement