Examlex

Solved

Consider the Following Code Snippet

question 7

Multiple Choice

Consider the following code snippet. What is the potential problem with the if statement? double average;
Average = (g1 + g2 + g3 + g4) / 4.0;
If (average == 90.0)
{
System.out.println("You earned an A in the class!") ;
}


Definitions:

Related Questions