DECLARE FUNCTION AVG(A,B,C)
CLS
INPUT"ENTER FIRST NO";A
INPUT"ENTER SECOND NO";B
INPUT"ENTER THIRDNO";C
PRINT"AVERAGE OF THREE NO";AVG(A,B,C)
END
FUNCTION AVG(A,B,C)
Av=(A+B+C)/3
AVG=AVE
END FUNCTION
CLS
INPUT"ENTER FIRST NO";A
INPUT"ENTER SECOND NO";B
INPUT"ENTER THIRDNO";C
PRINT"AVERAGE OF THREE NO";AVG(A,B,C)
END
FUNCTION AVG(A,B,C)
Av=(A+B+C)/3
AVG=AVE
END FUNCTION
No comments:
Post a Comment