1) Average of 3 numbers.(FUNCTION)
DECLARE FUNCTION Ave(A,B,C)CLSINPUT"Enter any three numbers";A,B,C PRINT"Average of three numbers";Ave(A,B,C)
END
FUNCTION Ave(A,B,C)
Av=(A+B+C)/3
Ave=Av
END FUNCTION
DECLARE FUNCTION Ave(A,B,C)CLSINPUT"Enter any three numbers";A,B,C PRINT"Average of three numbers";Ave(A,B,C)
END
FUNCTION Ave(A,B,C)
Av=(A+B+C)/3
Ave=Av
END FUNCTION
0 comments