Monday, October 21, 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 journey of Jagat Mandir School

13 Years of ExperiencE It is also said that school is next home of every child. "failing and learning" Teacher are like gods....