Академический Документы
Профессиональный Документы
Культура Документы
Homework
program try
real::a,b,sq,c,fact
if (a==1) then
end if
if (a==2) then
end if
if (a==3) then
end if
read*,a
read*,b
end subroutine
sq=a**2
end subroutine
subroutine cube(a,b,c) !for cubing
the number
c=a**3
end subroutine
integer::n
fact=1
do n=1,a
fact=fact*n
end do
end subroutine
2.runge kutta
program runge
real::h,x0,y0,w1,w2,w3,w4,w !variable type
3. program runge
real::h,x0,y0,w1,w2,w3,w4,w
CALL input(h,x0,y0) ! calls the module for getting input
call values(h,x0,y0,w1,w2,w3,w4,w) ! calls the values
end program runge