Esraa_Amer

#problem 1

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