Exercise 4: Print the Output Using Nested Arrays

Print a specific output based on an input nested array.

Problem statement

You’re given a two-dimensional array of numbers as input. For each number in the array, output as many * symbols in the corresponding place.


Consider the following array:

array = [
  [1, 2, 3],
  [2, 2, 2],
  [3, 2, 1]

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy