You are on page 1of 2

program math_func

C real x,y,z,func

C print*,'enter the value of x,y,z'

C read*,x,y,z

C func=sin(x)/(abs(y)+cos(z))

C print*,func

C end program

C =================================1.2

C real x,y,func

C print*,'enter the value of x and y'

C read*,x,y

C func=exp(abs(x-y))+x

C print*,func

C end program

C ====================================2.1

C real func

C func= 25.0**1/2.0*3.5**(1.0/3.0)

C print*,func

C end program

c=======================================2.2

C real func

C func= 5*(9/5)**2-4+9

C print*,func
C end program

c===================================== 2.3

real func

func= 2*4*5/3**2

print*,func

end program

You might also like