Average of 3 Number(Function)
DECLARE FUNCTION AVG(a,b,c)
CLS
INPUT"Enter any three number's";a,b,c
PRINT"Average of three number's is";AVG(a,b,c)
END
FUNCTION AVG(a,b,c)
AVG=(a+b+c)/3
END FUNCTION
CLS
INPUT"Enter any three number's";a,b,c
PRINT"Average of three number's is";AVG(a,b,c)
END
FUNCTION AVG(a,b,c)
AVG=(a+b+c)/3
END FUNCTION
Comments
Post a Comment