Free Version
Easy

# Printing Int Values Within While Loop

APCSA-FKEDGA

What does the following code segment print to the console?

int c=0;

while (c<6)
{
System.out.print(c + " + " + c);
c++;
}

A
0 + 01 + 12 + 23 + 34 + 45 + 5

B
0 + 1 + 2 + 3 + 4 + 5 +

C
30

D
0 + 0 + 1 + 1 + 2 + 2 + 3 + 3 + 4 + 4 + 5 + 5 +

E
1 + 12 + 23 + 34 + 45 + 56 + 6