Skip to content

Instantly share code, notes, and snippets.

@techpulsetoday
Created March 23, 2020 19:15
Show Gist options
  • Save techpulsetoday/88c2f880d5fe92f4a0cc12e9f9e100f1 to your computer and use it in GitHub Desktop.
Save techpulsetoday/88c2f880d5fe92f4a0cc12e9f9e100f1 to your computer and use it in GitHub Desktop.
<?php
for ($i = 1; $i <= 100; $i++) {
$result = $i;
$check_linio = $i % 3;
$check_it = $i % 5;
while (!$check_linio) {
$result = "Linio";
break;
}
while (!$check_it) {
$result = "IT";
break;
}
while (!$check_linio && !$check_it) {
$result = "Linianos";
break;
}
echo $result . "<br>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment