Hi,
Here is a problem.
1. A Array has 100 elements. {say, int a[100]}
2. Each of it is filled with a random number. {say, a[1] =99, a[2] = 8, .......}
3. Only one element is filled with zero.
Question: What should be the random number in place of which zero is present?
How to solve this problem? What is the logic?
Thanks
Here is a problem.
1. A Array has 100 elements. {say, int a[100]}
2. Each of it is filled with a random number. {say, a[1] =99, a[2] = 8, .......}
3. Only one element is filled with zero.
Question: What should be the random number in place of which zero is present?
How to solve this problem? What is the logic?
Thanks