program fcode_cn
implicit none
Integer , parameter :: TOPN = 100
integer :: i
Do i = 1 , TOPN , 2
write(*,'(2(i4,1x),i4,"+",i4,"=",i5)') i , i+1 , i , i+1, i+i+1
End Do
end program fcode_cn
七星彩 发表于 2020-10-8 18:03
[mw_shl_code=fortran,true]program fcode_cn
implicit none
Integer , parameter :: TOPN = 100
do i = 1, 100, 2
write(*,*)i, i+1, i, '+', i+1, 2*i + 1
end do
end
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |