# Print simple interest. (Function)

DECLARE FUNCTION SIMPLE(p,t,r)
CLS
INPUT "Enter principal";p
INPUT "Enter time";t
INPUT " Enter rate ";r
PRINT "Simple interest ";SIMPLE(p,t,r)
END

FUNCTION SIMPLE (p,t,r)
SI=(p*t*r)/100
SIMPLE=SI
END FUNCTION

Comments

Popular posts from this blog