Examlex

Solved

What Will Be Printed by the Statements Below

question 20

Multiple Choice

What will be printed by the statements below?
Int val = 1;
Int sum = 0;
While (val < 5)
{
Sum = sum + val;
Val++;
}
System.out.print (sum) ;


Definitions:

Related Questions