Write a method with a while loop to prints 1 through n in square brackets. For example, if n = 6 print                                                                      [1] [2] [3] [4] [5] [6]

icon
Related questions
Question
Write a method with a while loop to prints 1 through n in square brackets. For example, if n = 6 print                                                                      [1] [2] [3] [4] [5] [6]
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer