Fortranのバグを見てみましょう。 どうした? open(1,file=%data.txt') \x09real h,v,a,t,f,v0,g,H0 \x09f=0.03 \x09t=0.1 \x09g=9.8 \x09H0=100 \x09a=g \x09h=0 \x09v=0 \x09v0=sqrt(g/f) \x09do while(hv0)then \x09write(*,"(1x,F3.4)")v0 \x09else \x09write(*,"(1x,F3.4)")v \x09end if \x09end do \x09end \x09 エラーは F:\\\“:Error:A specification statement cannot appear in the executable section.\\\Text1.for(2) real h,v,a,t,f,v0,g,H0 --------^ Error executing df.exe.

Fortranのバグを見てみましょう。 どうした? open(1,file=%data.txt') \x09real h,v,a,t,f,v0,g,H0 \x09f=0.03 \x09t=0.1 \x09g=9.8 \x09H0=100 \x09a=g \x09h=0 \x09v=0 \x09v0=sqrt(g/f) \x09do while(hv0)then \x09write(*,"(1x,F3.4)")v0 \x09else \x09write(*,"(1x,F3.4)")v \x09end if \x09end do \x09end \x09 エラーは F:\\\“:Error:A specification statement cannot appear in the executable section.\\\Text1.for(2) real h,v,a,t,f,v0,g,H0 --------^ Error executing df.exe.

このエラーは、型宣言文が実行ステートメントのセクションに表示されないことを意味します。
Fortranの型宣言文は先頭にあります.型宣言文をopen文の前に置きます。