fork download
  1. program esfera
  2. implicit none
  3.  
  4. integer :: i
  5. real :: xi, xf, tp, y, x, n, k, nc, dydx
  6.  
  7. xi=0.0
  8. xf=5.0
  9. tp=0.1
  10. y=0.0
  11. x=xi
  12. n=2.0
  13. k=5.0
  14.  
  15. nc=(xf-xi)/tp
  16.  
  17.  
  18. print*,x,y
  19.  
  20. do i=1, nc
  21.  
  22. dydx=9.81-9.81*k*(y**n)
  23. y=y+tp*dxdy
  24. x=x+tp
  25.  
  26. Print *, x, y
  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.27:

                y=y+tp*dxdy
                           1
Error: Symbol 'dxdy' at (1) has no IMPLICIT type
prog.f95:20.15:

        do i=1, nc
               1
Error: Deleted feature: End expression in DO loop at (1) must be integer
stdout
Standard output is empty