Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DIMENSION S(7)
- SUM=0.0
- DO 20 I=1,7
- READ (*,*) S(I)
- SUM =SUM+S(I)
- 20 CONTINUE
- AMIN=S(1)
- DO 30 I=2,7
- IF(AMIN.GT.S(I)) AMIN=S(I)
- 30 CONTINUE
- GRADE=SUM-AMIN
- AVE=GRADE/6
- WRITE(*,*)AVE
- PAUSE
- STOP
- END
Advertisement
Add Comment
Please, Sign In to add comment