Computer Science, asked by anshika9455, 8 months ago

Qus:1:(a):How many times 'Hello' is printed? [3]
public class Test1 {
public static void main(){
for(int i = 0; i<5; i++)
{
System.out.println("Hello");
break;
}
}
}

Answers

Answered by sujalboss1924
0

Answer:

1 times

Explanation:

Because of the presence of break in the loop

Answered by knsrivastav3074
0

Answer:

1 is the answer of your question

Similar questions