Limited access

Upgrade to access all content for this subject

Consider the following code segment.

 int limit = 8;
 System.out.print("H");
 int loopcount = 10;
 while (loopcount <= limit)
 {
  System.out.print("E");
  loopcount++;
 }

 System.out.print("LLO");

What is printed as a result of executing the code segment?

A

HELLO

B

HEELLO

C

HLLO

D

HEEELLO

E

H

Select an assignment template