This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| double startBalance = 4000; | |
| int period = 24; | |
| int procentPerMonth = 30; | |
| double withdrawSum = 0; | |
| double totalWithdraw = 0; | |
| for (int i = 0; i < period; i++) { | |
| double monthProfit = startBalance/100*procentPerMonth; | |
| if (monthProfit <= 2000){ | |
| monthProfit = monthProfit/2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| double startBalance = 10000; | |
| int period = 30*6; | |
| int procentPerDay = 5; | |
| int withdrawSum = 0; | |
| double result = 0.0; | |
| for (int i = 0; i < period; i++) { | |
| final dayProfit = startBalance/100*procentPerMonth; | |
| startBalance += monthProfit; | |
| var vTenge = monthProfit*450; |