1 2 3 4 5 6 7 8 9
int::nfact int::n nfact=1 n=1 do while(n<10) nfact=nfact*n n=n+1 print*,n," ", nfact endprint end do