fork download
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. $calories = 34;
  6. $serving = 100;
  7. $custom_serving = 150;
  8.  
  9. echo "The new caloric content is: " . ($calories / $serving) * $custom_serving;
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
The new caloric content is: 51