JSFiddle - React, Tailwind, and code Playground

by MakkerHeineken

JavaScript

< ? php
$numbers = [56, 65, 26, 86, 66, 34, 78, 74, 67, 18, 34, 73, 45, 67, 75, 10, 60, 80, 74, 16, 86, 34, 12, 23, 42, 72, 36, 3, 73, 9, 92, 81, 94, 54, 97, 74, 45, 55, 70, 94, 96, 81, 86, 86, 84, 4, 32, 8, 96, 86, 87, 18, 84, 87, 59, 48, 32, 90, 17, 22, 82, 79, 66, 28, 17, 14, 80, 83, 66, 36, 21, 89, 68, 2, 51, 65, 20, 87, 48, 5, 1, 16, 60, 53, 84, 90, 16, 2, 37, 73, 57, 70, 57, 69, 68, 1, 24, 40, 72, 97];

$numbers = 0;

while ($numbers < 100) {
  $numbers ++1;

  if ($numbers > 90) {
    echo "couner is larger than 90, stopping the loop.\n";
    break;
  }

  if ($numbers % 2 == 0) {
    echo "Skipping number $numbers brcause it is even.\n";
  }
  echo "Executing - counter is $numbers.\n";
}


// TODO: Print odd numbers only

?>