Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- finum=355
- senum=294
- thnum=290
- fonum=390
- fivnum=94
- sinum=55
- senum=57
- einum=88
- ninum=90
- tenum=80
- blah=10
- sum=`expr $finum + $senum + $thnum + $fonum + $fivnum + $sinum + $senum + $einum + $ninum + $tenum`
- ave=`expr $sum / 10`
- echo "The class code is: CIS-1450"
- date
- echo "Here are the numbers you typed in:"
- echo "$finum $senum $thnum $fonum $fivnum $sinum $senum $einum $ninum $tenum"
- echo "Average: $ave"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement