[Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode 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 |