Search This Blog

Tuesday, October 22, 2019

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

No comments:

Post a Comment

My journy with Jagat Mandir

10 years of journy with JM it was the most important day of my life i spend my 10 years with this school . I am so happy that i could spend...