fork download
  1. PROGRAM Time8.8.2.1
  2. IMPLICIT NONE
  3. REAL :: Light_Minute, Distance, Elapse
  4. INTERGER :: Minute, Second
  5.  
  6. ! Light_Year : Distance travelled by light
  7. ! in on year in km
  8. ! Light_Minute : Distance travelled by light
  9. ! in one minute in km
  10. ! Distance : Distance from sun to earth in km
  11. ! Elapse : Time taken to travel a
  12. ! distance (Distance) in minutes
  13. ! Minute : Interger number part of elapse
  14. ! Second : Interger number of seconds
  15. ! equlivalent to fractional part of elapse
  16. !
  17. Light_Minute = (365.25*24.0*60.0)
  18. Distance = 35870.0
  19. Elapse = Distance / Light_Minute
  20. Minute = Elapse
  21. Second =( Elapse - Minute)*60
  22. Print*, ' It takes ' , Minute, 'Minutes'
  23. Print*, ' ' , Second, 'Seconds'
  24. Print*, ' For telephone call to reach a satellite'
  25. END PROGRAM Time8.8.2.1
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.f95:1.7:

PROGRAM Time8.8.2.1
       1
Error: Invalid form of PROGRAM statement at (1)
prog.f95:4:

INTERGER :: Minute, Second
1
Error: Unclassifiable statement at (1)
prog.f95:17.1:

 Light_Minute = (365.25*24.0*60.0)
 1
Warning: Nonconforming tab character at (1)
prog.f95:18.1:

 Distance = 35870.0
 1
Warning: Nonconforming tab character at (1)
prog.f95:19.1:

 Elapse = Distance / Light_Minute
 1
Warning: Nonconforming tab character at (1)
prog.f95:20.1:

 Minute = Elapse
 1
Warning: Nonconforming tab character at (1)
prog.f95:21.1:

 Second =( Elapse - Minute)*60
 1
Warning: Nonconforming tab character at (1)
prog.f95:22.1:

 Print*, ' It takes ' , Minute, 'Minutes'
 1
Warning: Nonconforming tab character at (1)
prog.f95:23.1:

 Print*, '             ' , Second, 'Seconds'
 1
Warning: Nonconforming tab character at (1)
prog.f95:24.1:

 Print*, ' For telephone call to reach a satellite'
 1
Warning: Nonconforming tab character at (1)
prog.f95:25.17:

END PROGRAM Time8.8.2.1
                 1
Error: Syntax error in END PROGRAM statement at (1)
Error: Unexpected end of file in 'prog.f95'
stdout
Standard output is empty