24.CALCULATE DISTANCE TRAVELLED BY
BODY.
DECLARE FUNCTION DISTANCE(U,A,T)
CLS
INPUT “ENTER UNIFORM VELOCITY”;U
INPUT “ENTER ACCELERATION”;A
INPUT “ENTER TIME “;T
PRINT “DISTANCE
TRAVELLED=”;DISTANCE ( U,A,T)
END
FUNCTION DISTANCE (U,A,T)
D=U*T+1/2*A*T^2
DISTANCE =D
END FUNCTION
No comments:
Post a Comment
beautiful