我是Fortran的新手,我不明白这条线:
write(*,'(a35)', advance='no')
Run Code Online (Sandbox Code Playgroud)
在:
program democonvertion
implicit none
real :: tc, tf, tr, tk
write(*,'(a35)', advance='no')
& "Enter the temperature in Celcius: "
read(*,*) tc
tf = (9./5) * tc + 32
tr = (4./5) * tc
tk = tc + 273
write(*,*)
write(*,'(4a11)') "Celcius","Farenheit","Reamur","Kelvin"
write(*,'(4f11.2)') tc, tf, tr, tk
end program democonvertion
Run Code Online (Sandbox Code Playgroud)
我已经编译了这段代码,并且可以正常工作。但是我还是不明白。