program ex0421
integer a
real b
complex c
logical d
character e
a=10
b=12.34
c=(1,2)
d=.true.
e="Fortran"
write(*,"(1x,i5)") a
write(*,"(1x,f6.3)") b
write(*,"(1x,f4.2,f4.2)") c
write(*,"(1x,l3)") d
write(*,"(1x,a10)") e
end
li913 发表于 2021-11-17 22:29
character e 改为 character(7) e
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |