Thursday, October 3, 2019

To find Average of three numbers.(FUNCTION)

DECLARE FUNCTION AVG(A,B,C)
CLS
INPUT"ENTER ANY NUMBERS";A

INPUT"ENTER ANY NUMBER";B
INPUT"ENTER ANY NUMBER";C
PRINT"AVERAGE OF THREE NUMBERS=";AVG(A,B,C)
END

FUNCTION AVG(A,B,C)
AV=(A+B+C)/3
AVG=AV
END FUNCTION

No comments:

Post a Comment

Experience of Quarantine and SEE canceled

Our SEE was canceled due to the outbreak of Corona Virus (COVID-19). It's been 3 months since the Nepalese people have been staying home...