2. What is the outcome of the following loop?
int ctr=0;
while(ctr=0){
System.out.println("This is printed”);
ctr++;
Answers
Answered by
7
Answer:
This is printed
Explanation:
because ctr is 0 it will go inside the loop when it is true so it will run one time only
Similar questions