fork download
  1. //Another shitty attempt to make this work.
  2. <?PHP
  3. $money=10000;
  4. $age=16;
  5. $percent=1.1;
  6. for($money=10000,$age=16,$percent=1.1;$money<1100000;$age++,$money=$money*$percent){
  7. echo "Current age:$age\n";
  8. floor($money);
  9. echo "Money on balance:$money\n";
  10. }
Success #stdin #stdout 0s 82880KB
stdin
Standard input is empty
stdout
//Another shitty attempt to make this work.
Current age:16
Money on balance:10000
Current age:17
Money on balance:11000
Current age:18
Money on balance:12100
Current age:19
Money on balance:13310
Current age:20
Money on balance:14641
Current age:21
Money on balance:16105.1
Current age:22
Money on balance:17715.61
Current age:23
Money on balance:19487.171
Current age:24
Money on balance:21435.8881
Current age:25
Money on balance:23579.47691
Current age:26
Money on balance:25937.424601
Current age:27
Money on balance:28531.1670611
Current age:28
Money on balance:31384.28376721
Current age:29
Money on balance:34522.712143931
Current age:30
Money on balance:37974.983358324
Current age:31
Money on balance:41772.481694157
Current age:32
Money on balance:45949.729863572
Current age:33
Money on balance:50544.702849929
Current age:34
Money on balance:55599.173134922
Current age:35
Money on balance:61159.090448415
Current age:36
Money on balance:67274.999493256
Current age:37
Money on balance:74002.499442582
Current age:38
Money on balance:81402.74938684
Current age:39
Money on balance:89543.024325524
Current age:40
Money on balance:98497.326758076
Current age:41
Money on balance:108347.05943388
Current age:42
Money on balance:119181.76537727
Current age:43
Money on balance:131099.941915
Current age:44
Money on balance:144209.9361065
Current age:45
Money on balance:158630.92971715
Current age:46
Money on balance:174494.02268886
Current age:47
Money on balance:191943.42495775
Current age:48
Money on balance:211137.76745353
Current age:49
Money on balance:232251.54419888
Current age:50
Money on balance:255476.69861877
Current age:51
Money on balance:281024.36848064
Current age:52
Money on balance:309126.80532871
Current age:53
Money on balance:340039.48586158
Current age:54
Money on balance:374043.43444774
Current age:55
Money on balance:411447.77789251
Current age:56
Money on balance:452592.55568176
Current age:57
Money on balance:497851.81124994
Current age:58
Money on balance:547636.99237493
Current age:59
Money on balance:602400.69161242
Current age:60
Money on balance:662640.76077367
Current age:61
Money on balance:728904.83685103
Current age:62
Money on balance:801795.32053614
Current age:63
Money on balance:881974.85258975
Current age:64
Money on balance:970172.33784873
Current age:65
Money on balance:1067189.5716336