Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program hello
- implicit none
- real :: now, after
- integer :: time
- !
- read (*,*) now
- after = now
- time = 0
- do while ( (after/now) <= 2.0 )
- time = time + 1
- write (*,*) time
- after = after * (1.0 + (1/80.0) )
- end do
- write (*,*) after, time
- end program
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement