Question: What does the following code print? for ( int i = 2 ; i 8 ; i + + ) { for ( int y

What does the following code print? for (int i =2; i 8; i++){ for (int y =1; y =5; y++){ System.out.print("*"); } System.out.println(); } A rectangle of 6 rows with 4 stars per row. A rectangle of 8 rows with 4 stars per row. A rectangle of 8 rows with 5 stars per row. A rectangle of 6 rows with 5 stars per row.
What does the following code print? for ( int i =

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!