Day dreamer
Saturday, November 2, 2019
#22 FIND THE DISTANCE TRAVELLED BY A BODY
DECLARE FUNCTION DIS(U,T,A)
CLS
INPUT"ENTER VELOCITY";U
INPUT"ENTER TIME";T
INPUT"ENTER ACCELERATION";A
PRINT"DISTANCE TRAVELLED BY BODY IS ";DIS(U,T,A)
END
FUNCTION DIS(U,T,A)
DIS=U*T+1/2*A*T^2
END FUNCTION
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment