Study the following program and answer the given
questions.
DECLARE FUNCTION GREATER(A,B)
INPUT "Enter first number-";X
INPUT "Enter second number-"; Y
C=GREATER(X,Y)
PRINT "The greatest number is ";C
END
FUNCTION GREATER (A,B)
IF A>B THEN
GR=A
ELSE
GR=B
END IF
GREATER=GR
END FUNCTION
QUESTIONS;
a) What will be the output of the program if X=6 and Y=7?
b) How many arguments are used?
c) List numeric variable used in above program
Answers
Answered by
0
Answer:
Gaira was asked to evaluate the algebraic
expression –3.8x + 6 when x = –7.5.
–3.8(–7.5) + 6(–7.5)
28.5 + (–45)
(–16.5)
What mistake did she make? What is the correct answer?
Similar questions