Created
March 23, 2020 19:15
-
-
Save techpulsetoday/88c2f880d5fe92f4a0cc12e9f9e100f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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