- #1
Md. Abde Mannaf
- 20
- 1
Code:
program factorial
implicit none
integer::fact,i,n
print*,'enter the value of n'
read*,n
fact=1
do i=1,n
fact=fact*i
end do
print*,'factorial is ',fact
end program
when input n largest number then answer is incorrect. how to solve