Advertisement
winone1208

zad2

May 30th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. a=1
  4. s=0
  5. while [ $a -le 10 ]
  6. do
  7. s=$[s+a]
  8. a=$[a+1]
  9. done
  10.  
  11. echo "Wynik sumy liczb od 1 do 10: $s"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement