SHARE
TWEET

Untitled

a guest Jun 19th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. public function degrees($hour, $min)
  3. {
  4.     $degree = $hour*30 + $min *6;
  5.     if ($degree>360){
  6.         $result= $degree - 360;
  7.     }
  8.     elseif ($degree< 360) {
  9.         $result = $degree;
  10.     }
  11.     echo $result.' degrees';
  12. }
  13. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top