Analyze the given program segment and answer the following questions:
for(int j=1; ; ++j )
{
System.out.print(" #@" );
if(j==3)
{System.out.print(j*3 );
break;
}
System.out.println(" $%" );
}
(i) How many times does the inner loop execute?
(ii) Write the output of the program segment
Answers
Answered by
0
Explanation:
hi hope it will help you ...
Attachments:
Similar questions
India Languages,
2 months ago
Math,
2 months ago
Computer Science,
5 months ago
Physics,
11 months ago
Business Studies,
11 months ago
Hindi,
11 months ago