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 spaceseparated 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 spaceseparated positive
numbers.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
