Question: Write code that reads in 7 numbers and that outputs the product of all numbers greater than or equal to zero and the product of
Write code that reads in 7 numbers and that outputs the product of all numbers greater than or equal to zero and the product of all numbers less than zero. For example: Input Result -6 -2 -1-5 -8 5 7 Enter 7 integers Product of non-negatives = 35 Product of negatives -480 Answer: (penalty regime: 0,10,20,50, %) 1 Scanner scan new Scanner(System.in); 2 2 ITODO your code goes here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
