File: /home/santu/desktop/assign/problem3.f90 Page 1 of 1: Do While (I 6) Enddo Write (, ) 'Sum ',s End

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

File: /home/santu/Desktop/assign/problem3.

f90
integer::i=1
real::s=2.0
do while(i<=6)
s=2.0+1.0/s
i=i+1
enddo
write(*,*)'sum=',s
end

Page 1 of 1

You might also like