Advertisement
NozdrachevNN

Task 14

Jul 11th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. $i=0;
  2. $s = gmp_fact($n);
  3. $s = gmp_strval($s);
  4.  
  5. $i=0;
  6. foreach ($s as $key) {
  7.     if ($key == 0) {
  8.     $i++;
  9.     }
  10.     else {
  11.     $i=0;
  12.     }
  13. }
  14. return ($i);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement