fork download
  1. <?php
  2.  
  3. $premio = 100000;
  4.  
  5. $aposta1=50;
  6. $aposta2=150;
  7. $aposta3=300;
  8.  
  9. $total = 500;
  10.  
  11.  
  12. $recebe1= ($premio*$aposta1)/$total;
  13. $recebe2= ($premio*$aposta2)/$total;
  14. $recebe3= ($premio*$aposta3)/$total;
  15.  
  16.  
  17. echo $recebe1 ."\n";
  18.  
  19. echo $recebe2 ."\n";
  20.  
  21. echo $recebe3;
Success #stdin #stdout 0.02s 23428KB
stdin
Standard input is empty
stdout
10000
30000
60000