program calculate_e
implicit none !
integer(kind=4)::M
character(LEN=3):: D,P,R
M=Log(P)-log(P-D*R)/log(1+R)
writer(*,*)‘M=’,M
end program
program calculate_e
implicit none !
real :: M
real :: D = 2.0 ,P = 30.0 , R = 4.0
M=Log(P)-log(P-D*R)/log(1+R)
write(*,*) "M=", M
end program
program main
implicit none
real::x=1.0,y=3.0,z=5.0,m=-6,n=4,k=3
real::S
S=max((m*k).(mod(m-1,n))*4)
write(*,*)"S=",S
end
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |