屏幕截图 2022-03-19 221913.png (34.77 KB, 下载次数: 178)
Program main
Implicit None
Real(8) , parameter :: PI = acos(-1.0)
Real(8) :: r,s,c
write(*,*) "请输入圆的半径"
read(*,*) r
s=PI*r*r
c=2.d0*PI*r
write(*,*) s
write(*,*) c
End Program main
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |