Esraa_Amer

#problem 2

Jan 14th, 2013
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DIMENSION S(7)
  2. SUM=0.0
  3. DO 20 I=1,7
  4. READ (*,*) S(I)
  5. SUM =SUM+S(I)
  6. 20 CONTINUE
  7. AMIN=S(1)
  8. DO 30 I=2,7
  9. IF(AMIN.GT.S(I)) AMIN=S(I)
  10. 30 CONTINUE
  11. GRADE=SUM-AMIN
  12. AVE=GRADE/6
  13. WRITE(*,*)AVE
  14. PAUSE
  15. STOP
  16. END
Advertisement
Add Comment
Please, Sign In to add comment