Question: Given space - separated positive numbers. Write a program to find the first index in the given numbers such that the product of all the

Given space-separated positive numbers. Write a program to find
the first index in the given numbers such that the product of all the
numbers before the index is equal to the product of all the numbers
after the index.
Note
The input will always contain atleast an index such
that the product of all the numbers before the
index is equal to the product of all the numbers
after the index.
Input
The input will be a single line containing space-separated positive
numbers.
 Given space-separated positive numbers. Write a program to find the first

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!