0

Hi , help me with 7project plz

4th Oct 2021, 5:26 PM
Ria Zakkia
Ria Zakkia - avatar
4 ответов
+ 5
Ria Zakkia , if you really have a problem, we need some more details from you: ▪︎give a clear and complete description about your task ▪︎if your question is related to an exercise in a tutorial, please mention the tutorial name and the lesson number ▪︎if there are error messages please post them here ▪︎give at least one sample with input data and the expected output ▪︎to be able to find out the issues you have, we need to see your code     => please put your code in playground, save it there and post a link to it here. thanks for your understanding!
4th Oct 2021, 5:31 PM
Lothar
Lothar - avatar
0
known problem. You are offered a choice of either $1.000.000 or $0.01 (one penny) doubled every day for 30 days (the resulting amount is doubled every day). Task: Write a program to calculate the amount that will result from the doubling to understand which choice results in a larger amount.
4th Oct 2021, 5:44 PM
Ria Zakkia
Ria Zakkia - avatar
0
Use a for loop to double the amount 30 times. int x = 0.01; for (int i=0;i<30;i++) x = x*2; Then compare
5th Oct 2021, 5:28 AM
Ajinkya
Ajinkya - avatar