|
|
money > 9223372036854775807 | I'm trying to figure after the "if statment" how to return back to the beginning of the code. |
|
|
|
|
|
|
It would take this many days - 2 It would take this many hours - 48 It would take this many minutes - 2880 It would take this many seconds - 172800 Press any key to continue . . . |
| Something like this? |
|
|
return returns from the function. continue ? while(true) { ... } prob simpler, or if you want a certain amount of complete runthroughs, while(count<3) , initialize count before while loop and increment that at the bottom after outputting the seconds.
|
|
|
|
| I would appreciate any other criticism on how I can better my project. |
|
|
|
|
This project is to estimate how long it would
take to spend a certain amount of money in a
specified amount of time.
Enter desired amount of money: $ 900000000000000000
Enter daily spending: $ 7
It would take this many days 128,571,428,571,428,571.43
It would take this many hours 3,085,714,285,714,285,714.25
It would take this many minutes 185,142,857,142,857,142,848.00
It would take this many seconds 11,108,571,428,571,428,571,136.00
Again (y/n)? n
|
|
|
|
|