[Fortran] 纯文本查看 复制代码 program ex3
implicit none
integer num
read(*,*) num
call xinghao1(num)
pause
end
subroutine xinghao(num)
integer ::i
write(*,"(A)") repeat('*',num)
end subroutine
subroutine xinghao1(num)
integer ::i
do i = 1, num
write(*,"(A)",advance='no') "*"
end do
end subroutine |