1. Engineering
  2. Computer Science
  3. lab description use nested loops to print out the box...

Question: lab description use nested loops to print out the box...

Question details

Lab Description Use nested loops to print out the box pattern show below. Files Needed Box.java BoxRunner.java Sample Data: Sample Output ·キ algorithm help ·キキキ output loop that runs num times loop output += * ·キキキキ loop k ..キキ output += # ..キキキキ ·キキキキキ output \n +=import static java.lang.System.; public class Box private int size; public Box() size -0 public Box (int count) size -count; public void setsize (int count) size count; public int getsize) return size; public String toString() String output- return outputiimport java.util.Scanner; import static java.lang.System.* public class BoxRunner public static void main( String args) scanner sc-new Scanner (System.in) System.out.print(Enter the box size int s-sc.nextInt() Box bxnew Box(s); System.out.println (The box size is +bx.getSize() System.out.println() for(int i 1i<-bx.getsize)ii++) for (int kebx.getsize();k>-İ ; k--) System.out.print(* for (int j-1ij<-iij++) System.out.print( System.out.println(

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution