Solved

What Will Be Printed by the Statements Below

Question 13

Multiple Choice

What will be printed by the statements below?
Int[] values = { 4, 5, 6, 7};
For (int i = 1; i < values.length; i++)
Values[i] = values[i - 1] + values[i];
For (int i = 0; i < values.length; i++)
System.out.print (values[i] + " ") ;


A) 4 9 11 13
B) 4 9 15 22
C) 9 11 13 7
D) 4 5 6 7

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions