Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

prob4

program prob4
!mathematical operation
integer::m,n,i
m=0
n=1
do i=1,10
read*,a
m=m+a
n=n*a
end do
print*,"the sum of ten numbers is",m
print*,"the product of ten numbers is",n
end program prob4

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.