<?php
fscanf(STDIN,"%f",$a);fscanf(STDIN,"%f",$b);fscanf(STDIN,"%f",$c);echo"MEDIA = ".number_format(($a*2+$b*3+$c*5)/10,1)."\n";
?>

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: