pastebin

Paste Search Dynamic
Recent pastes
Problem average
  1. <?php
  2. class Problem
  3. {
  4.     public static function average($a, $b)
  5.     {
  6.         return $a + $b / 2;
  7.     }
  8. }
  9.  
  10. echo Problem::average(3, 2);
  11.  
  12. ?>
Parsed in 0.004 seconds