Examlex

Solved

What Is the Value of the Cost Variable After the Following

question 34

Multiple Choice

What is the value of the cost variable after the following code snippet is executed?
Int cost = 82;
If (cost < 100)
{
Cost = cost + 10;
}
If (cost > 50)
{
Cost = cost * 2;
}
If (cost < 100)
{
Cost = cost - 20;
}


Definitions:

Related Questions