Question #51028

X=INT(SQR(2)). Which of the following is the value of X in the BASIC program?

a. 1.414
b. 4
c. 0
d. 1

Expert's answer

Answer: b. 4
X = INT( SQR (Y))
This expression meansthat X is equal to the integer part of the square number Y.
Thus, X= INT(SQR(2))=INT(22)=4


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS