Write a shell script that accept 7 numbers in loop

Write a shell script that accept 7 numbers in loop,then make a sum of this numbers. then count the numbers that are greater than 250 ?

Questions by angel rayan

Showing Answers 1 - 2 of 2 Answers

ardiansyah

  • Jul 5th, 2012
 

Code
  1. #!/bin/bash

  2. "Write a number : ""c=c+1"

  3.         fi

  4.         let "total = i + total""total = $total"

  5. echo " > 250 = $c "

satish

  • Jul 10th, 2013
 

Code
  1. span style="color: #ff0000;">"Enter number "`expr $total + $i`"Enter number "`expr $total + $i`

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions