Advertisement
codeido

Solaris prog7

Jan 22nd, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. index=0
  4.  
  5. echo Printing 0-4
  6. while (test "$index" -lt 5)
  7. do
  8.     echo $index
  9.     let index=index+1
  10. done
  11.  
  12. echo Please enter the number of iterations
  13. read index
  14. while (test "$index" -gt 0)
  15. do
  16.     echo $index
  17.     let index=index-1
  18. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement