Computer Science, asked by yashandvarun, 10 months ago


39. Analyze the given program segment and answer the
following questions:
(i) Write the output of the program segment,
(ii) How many times does the body of the
loop gets executed?
for( int m = 5; m <= 20; m += 5 )
{ if( m % 3 == 0 )
break;
else
if( m % 5 == 0)
System.out.println( m );
continue;
ICSE 2016​

Answers

Answered by Anonymous
1

Answer:1. Output : 5 , 10 . 2. Three times

Explanation:

Similar questions