Program to find average of 3 numbers using FUNCTION
DECLARE FUNCTION AVG(A,B,C)
CLS
INPUT"ENTER ANY THREE NUMBERS";A,B,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
CLS
INPUT"ENTER ANY THREE NUMBERS";A,B,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
Comments
Post a Comment