R Lo

Greenhorn
+ Follow
since Feb 19, 2020
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by R Lo

I'm fairly new to java and I'm having trouble figuring out how to do this equation using "for loops" anyone on here help/post solution?

A chess board has 64 squares. Suppose you were to put one cent on the first square, then 2 cents on the second, then 4 cents on the third, then 8 cents on the fourth , until all the squares were covered.
Using a "for loop", create a program to answer the following questions

q1 What would be the amount placed on the 64th square ?
q2 What would be the total amount placed on the board ?
4 years ago