Question: Integer arrays firstNumSet and secondNumSet are read from input, each containing three elements. If an element in firstNumSet is less than or equal to the

Integer arrays firstNumSet and secondNumSet are read from input, each containing three elements. If an element in firstNumSet is less than or equal to the corresponding element in secondNumSet, then replace the element in firstNumSet with -1. Otherwise, subtract 2 from the element in firstNumSet.

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