Monday, September 30, 2019

QBASIC PROGRAM TO FIND AVERAGE OF THREE NUMBERS USING FUNCTION.


DECLARE FUNCTION AVERAGE (A, B, C)
CLS
INPUT “ENTER ANY THREE NUMBERS”; A, B, C
PRINT “AVERAGE OF 3 NUMBERS =”; AVERAGE (A, B, C)
END

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

No comments:

Post a Comment

Experience of COVID-19 and the cancellation of SEE.

As we know, that this pandemic disease has started from the Wuhan district of China. This viruswvirus discovered out on 31st December 2019 ...