fork download
  1. program esfera
  2. implicit none
  3.  
  4. integer :: i, nc
  5. real :: xi, xf, tp, V, t, n, k, dVdt
  6.  
  7. xi=0.0
  8. xf=5.0
  9. tp=0.1
  10. V=0.0
  11. t=xi
  12. n=2.0
  13. k=-0.5
  14.  
  15. nc=20
  16.  
  17.  
  18. print*,t,V
  19.  
  20. do i=1,nc
  21.  
  22. dVdt=9.81-9.81*k*(V**n)
  23. y=y+tp*dVdt
  24. t=t+tp
  25.  
  26. Print *, t, V
  27.  
  28. enddo
  29.  
  30. end program esfera
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.f95:23.17:

                y=y+tp*dVdt
                 1
Error: Symbol 'y' at (1) has no IMPLICIT type
stdout
Standard output is empty