Question: C14.1.1: Nested loops: Indent text. Print numbers 0,1,2.., userNum as shown, with each number indented by that number of spaces. For each printed line. print
C14.1.1: Nested loops: Indent text. Print numbers 0,1,2.., userNum as shown, with each number indented by that number of spaces. For each printed line. print the CHALLENGE g spaces, then the number, and then a newline. Hint: Use i and j as loop variables (initialize i andj explicty). Note: Avoid any other spaces like spaces after the printed number. Ex userNum 3 prints: 1 import java.util.Scanner 2 public class NestedLoop 3 public static void main (String args) 1 test Scanner scnr new Scanner(System.in) int userNum; int i; int 5; All tests passed 18 userNum scnr.nextIntO; 12 13 14 15 /* Your solution goes here /
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
