Day dreamer
Tuesday, October 22, 2019
#1 AVERAGE OF 3 NUMBERS
DECLARE FUNCTION AVG (A,B,C)
CLS
INPUT"Enter first number";A
INPUT"Enter second number";B
INPUT"Enter third number";C
PRINT"Average of 3 no";AVG(A,B,C)
END
FUNCTION AVG (A,B,C)
Av=(A+B+C)/3
AVG=Av
END FUNCTION
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment