Answers for "s'entrainer pour tests techniques developpeurs web"

0

s'entrainer pour tests techniques developpeurs web

function fizzbuzz($liste) {
  foreach($liste as $n) {
    if($n%3 == 0 && $n%5 == 0) echo 'fizzbuzz';
    elseif($n%3 == 0) echo 'fizz';
    elseif($n%5 == 0) echo 'buzz';
    else echo $n;
    echo "\n";
  }
}
fizzbuzz([1, 2, 3, 4, 5, 7, 15, 20]);
Posted by: Guest on November-08-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language