Average of three numbers
Average of three numbers
DECLARE FUNCTION AVG(A,B,C)
CLS
INPUT"ENTER FIRST NUMBER";A
INPUT"ENTER SECOND NUMBER";B
INPUT"RNTER THIRD NUMBER";C
PRINT"AVERAGE OF THREE NUMBERS";AVG(A,B,C)
END
FUNCTION AVG(A,B,C)
AVG = (A+B+C)/3
AVG = AV
END FUNCTION
Comments
Post a Comment