What will be the values of ans, x, and y after the following statements are executed?
```
int ans = 35, x = 50, y = 50;
if (x >= y)
{
ans = x + 10;
x -= y;
}
else
{
ans = y + 10;
y += x;
}
```
a. ans = 60, x = 0, y = 50
b. ans = 45, x = 50, y = 0
c. ans = 45, x = 50, y = 50
d. ans = 60, x = 50, y = 100
a. ans = 60, x = 0, y = 50
Computer Science & Information Technology
You might also like to view...
A pie chart can only be based on one data series
Indicate whether the statement is true or false
Computer Science & Information Technology
The Blend tool can be used to create a blend between two unselected objects.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology