04. 1-8 Repeating ourselves with loops, do
Thanks! Share it with your friends!
You disliked this video. Thanks for the feedback!
Sorry, only registred users can create playlists.
program factorial
implicit none
! define variables, some with initial values
integer :: nfact = 1
integer :: n
! compute factorials
do n = 1, 20
nfact = nfact * n
write(*,*) n, nfact
if(n 10) exit
end do
end program factorial
Uni. Of Cambridge
Dep. Of Physics
Computational Physics
Self-study guide 2
Programming in Fortran 95
Thanks to Dr. Rachael Padman and Michaelmas for allowing the citation.
참고사이트 https://www.mrao.cam.ac.uk/~rachael/compphys/SelfStudyF95.pdf
#fortran #Dr._Rachael_Padman_and_Michaelmas #fortran_tutorial #vfun #NAG_Fortran #FTN95
Show more