DECLARE FUNCTION AVG ( A, B, C)
CLS
INPUT " Enter any three number"; A, B, C
PRINT " Average of three number"; AVG ( A, B, C)
END
FUNCTION AVG ( A, B, C)
AV = ( A + B + C ) / 3
AVG = AV
END FUNCTION
CLS
INPUT " Enter any three number"; A, B, C
PRINT " Average of three number"; AVG ( A, B, C)
END
FUNCTION AVG ( A, B, C)
AV = ( A + B + C ) / 3
AVG = AV
END FUNCTION
No comments:
Post a Comment