a) Analyze the given program segment and answer the following questions.
i) Write the output of program segment.
How many times does the body of loop get executed?
for int m=5; m<=0; m+=5)
{ if(m%3==0;
Break;
else
if(m%5==0)
System.out.println(m);
Continue;
}
Answers
Answered by
1
Answer:
1) output
5
10
2)3times
Similar questions