Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- clear
- oposum()
- {
- RETURN_VALUE=$(expr $1 + $2)
- }
- outp()
- {
- SUMMA=0
- for i in 1 2 3 5 7 11 13 17 19 23; do
- printf "$i ";
- oposum $SUMMA $i
- SUMMA=$RETURN_VALUE
- done
- printf "\n"
- }
- echo "Prosti chysla:"
- outp
- echo "Summa 10 pershych prostych chysel=$SUMMA"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement