Search:

Type: Posts; User: WhyExist

Search: Search took 0.14 seconds.

  1. 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. 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. 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. Re: Using a while or do loop to represent the Rice and Chessboard case

    Hi, thanks for the reply.

    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. 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...
Results 1 to 5 of 5