<?php
$a = (float)trim(fgets(STDIN));
$b = (float)trim(fgets(STDIN));
$c = (float)trim(fgets(STDIN));
$media = ($a*2 + $b*3 + $c*5) / 10;
printf("MEDIA = %.1f\n", $media);
?>
To embed this project on your website, copy the following code and paste it into your website's HTML: