Examlex

Solved

What Is the Output of the Following Code Fragment

question 59

Multiple Choice

What is the output of the following code fragment?
Int i = 1;
Int sum = 0;
While (i <= 15)
{
Sum = sum + i;
I++;
}
System.out.println("The value of sum is " + sum) ;


Definitions:

Related Questions