Solved

What Is the Value of Ans After the Following Code

Question 58

Multiple Choice

What is the value of ans after the following code has been executed?
int x = 35;
Int y = 20, ans = 80;
If (x < y)
Ans += y;


A) 80
B) 100
C) 35
D) 55

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions