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
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |