Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $lukujono = $_GET['lukujono']; // Can't touch this line
- $lukutaulukko = explode(',',$lukujono); // Can't touch this line
- $pisteet = $lukujono;
- $summa = array_sum($lukutaulukko);
- $keskiarvo = ($summa/count($lukutaulukko));
- echo "Pisteet olivat: $pisteetn"; // Can't touch this line
- echo "Pisteiden summa: $summan"; // Can't touch this line
- echo "Pisteiden keskiarvo: $keskiarvo"; // Can't touch this line
- ?>
Add Comment
Please, Sign In to add comment