Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.  
  4. finum=355
  5. senum=294
  6. thnum=290
  7. fonum=390
  8. fivnum=94
  9. sinum=55
  10. senum=57
  11. einum=88
  12. ninum=90
  13. tenum=80
  14. blah=10
  15.  
  16.  
  17. sum=`expr $finum + $senum + $thnum + $fonum + $fivnum + $sinum + $senum + $einum + $ninum + $tenum`
  18.  
  19. ave=`expr $sum / 10`
  20.  
  21. echo "The class code is: CIS-1450"
  22. date
  23.  
  24. echo "Here are the numbers you typed in:"
  25. echo "$finum $senum $thnum $fonum $fivnum $sinum $senum $einum $ninum $tenum"
  26.  
  27. echo "Average: $ave"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement