Question: Python As you know the inventor of the game chess was quite a clever fellow. As the story goes the inventor presented the game to
Python
- As you know the inventor of the game chess was quite a clever fellow. As the story goes the inventor presented the game to the king and the king was quite pleased. The king asked what the inventor wanted as payment. He asked for a grain of cereal for the first square and to have each of the next 63 squares double the previous square. As the story goes the king agrees, but was not too pleased by the final payment. Create a program that computes how much grain the king had to pay for each square and the total. Express your final answer in pounds, assume there are 7000 grains to a pound.
Print:
Square 1: 1
Square 2: 2
Square 3: 4
Square 4: 8
.
Square 64:
Total: . grains, which is . pounds.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
