fork download
  1. PROGRAM CAL
  2. PRINT (6 , * ) ' Enter Roughness Ratio (e/d) '
  3. READ (5 , * ) ED
  4. PRINT (6 , * ) ' Enter Reynolds Number (Re) '
  5. READ (5, * ) Re
  6. IF (ABS(DF).GT.1.E-6) THEN
  7. F= 0.25/(0.434*ALOG( ED/3.7 + 5.74/RE**0.9)**2 )
  8. F= 1/SQRT (F)
  9. ITER= 0
  10. ITER= ITER + 1
  11. G= ED/3.7 + 2.51*F/RE
  12. RF= F + 0.869/G*2.51/RE
  13. DFR= -RF/DFR
  14. F= F + DF
  15. END IF
  16. F=1./(F**2)
  17. PRINT(6, * ) ' THE FRICTION FACTOR IS ', F
  18. STOP
  19. END
  20.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
0.0002
45654
compilation info
prog.f95:2.5:

PRINT (6 , * ) ' Enter Roughness Ratio (e/d) '
     1
Error: Syntax error in PRINT statement at (1)
prog.f95:4.5:

PRINT (6 , * ) ' Enter Reynolds Number (Re) '
     1
Error: Syntax error in PRINT statement at (1)
prog.f95:17.5:

PRINT(6, * ) ' THE FRICTION FACTOR IS ', F
     1
Error: Syntax error in PRINT statement at (1)
stdout
Standard output is empty