- 4
help me to do this.need to knwo how it can solve?
How many times a man has to double grains of rice to obtain more than one million grains of rice if he start with one grain of rice. write a java program to solve it
4 Answers
+ 5
Don't think of rice, think of numbers..
Just take 1...
Double it to 2...
Double it to 4...
Keep going until > 1million.
It's a simple for loop.
+ 1
Use google
0
finaly found a wayđđ
0
thanks for the helping me