Question: Write a function that accepts an integer array as an argument. The function prints out the values of the given array multiplied with each other,

Write a function that accepts an integer array as an argument. The function prints out the values of the given array multiplied with each other, every operation on their own line. One operation can only occure once; ie. an array of 3 elements produces 6 lines.

// Example output with an array of [1,2,3]

1 * 1 = 1

1 * 2 = 2

1 * 3 = 3

2 * 2 = 4

2 * 3 = 6

3 * 3 = 9

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 Databases Questions!