Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. $loen = array (352772, 360000, 370000, 380000, 390000, 400000, 410000, 420000, 430000, 440000, 450000, 460000, 470000, 480000, 490000, 500000, 510000, 520000, 530000, 540000, 550000, 560000, 570000, 580000, 590000, 597000);
  2. $su = array (2691, 2640, 2570, 2499, 2429, 2358, 2288, 2217, 2147, 2076, 2006, 1935, 1865, 1794, 1724, 1654, 1583, 1513, 1442, 1372, 1301, 1231, 1160, 1090, 1019, 970,);    
  3. $deservedSU = 0;
  4. $check = False;
  5.  
  6. for ($i = 0; $i < count($su); $i++);
  7.     if ($loen[$i] <= $actuelLoen);
  8.         {
  9.         $deservedSU = $su[$i];
  10.         $check = True;
  11.     }
  12.    
  13. if ($check == False);
  14. {
  15.         $deservedSU = $su[0];
  16. print ($deservedSU);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement