SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $grades = [73, 67, 38, 33];
  4.  
  5. $size= sizeof($grades);
  6.  
  7. for($i=0; $i<$size; $i++) {
  8.     $original=$grades[$i];
  9.     $naechster=ceil(($original*2)/10)*5;
  10.     $rest = $naechster - $original;
  11.     if ($rest <=2 && $original > 37) {
  12.     }
  13.     else {
  14.        $naechster = $original;
  15.    }
  16.     echo $naechster."\n";
  17. }
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