Site icon Pathshala Nepal

Write the output of the given program.

Q BAISC OS
Online Calculator

Write the output of the given program.

DECLARE FUNCTION INTEREST (P, T, R)

CLS
LET P = 30
LET T = 40
LET R = 6
LET D = INTEREST (P, T, R)
PRINT "THE SIMPLE INTEREST WILL BE";D
END
FUNCTION INTEREST (P, T, R)
ANSWER = (P*T*R)/100
INTEREST = ANSWER
END FUNCTION


1 Answer


The output of the following program is:

"The simple interest will be 72"

Topics from Computer
Related Questions