# Search:

Type: Posts; User: WhyExist

1. ## Thread: Using a while or do loop to represent the Rice and Chessboard case

by WhyExist
Replies
10
Views
2,496

### Re: Using a while or do loop to represent the Rice and Chessboard case

I see. I must have read or misunderstood my textbook for some reason I thought i++ meant it displays the numbers in ascending order and i-- in descending order. What sorts of things can the last bit...
2. ## Thread: Using a while or do loop to represent the Rice and Chessboard case

by WhyExist
Replies
10
Views
2,496

### Re: Using a while or do loop to represent the Rice and Chessboard case

I think i is the equivalent of the grains of rice because for the next grain of rice on a square we are doing *2?
3. ## Thread: Using a while or do loop to represent the Rice and Chessboard case

by WhyExist
Replies
10
Views
2,496

### Re: Using a while or do loop to represent the Rice and Chessboard case

An error on my part it is was supposed to represent the amount of squares on a chessboard but I don't know why that was relevant.
4. ## Thread: Using a while or do loop to represent the Rice and Chessboard case

by WhyExist
Replies
10
Views
2,496

### Re: Using a while or do loop to represent the Rice and Chessboard case

I wrote the problem down on paper I can't see a correlation between the number of squares and the grains of rice. But I've noticed that the rice is multiplied by 2 each...
5. ## Thread: Using a while or do loop to represent the Rice and Chessboard case

by WhyExist
Replies
10
Views
2,496

### Using a while or do loop to represent the Rice and Chessboard case

The rice and chessboard case = "Oh emperor, my wishes are simple. I only wish for this. Give me one grain of rice for the first square of the chessboard, two grains for the next square, four for the...

by WhyExist
Replies
1
Views
499

### Hi

Hi,

Nice to meet you all.

I'm currently on a fast paced computing conversion course one of the modules is java.
Results 1 to 6 of 6