Skip to content
Snippets Groups Projects
Commit 7f31e0bb authored by SerZile's avatar SerZile
Browse files

yinyang zavrsen

parent 151d46d3
No related branches found
No related tags found
No related merge requests found
<?php
class YinYang
{
static function provera($a, $b)
{
while ($a <= $b) {
$mod3 = $a % 3 === 0;
$mod5 = $a % 5 === 0;
if ($mod3 && $mod5){
echo "Yin-Yang";
}elseif ($mod3) {
echo "Yin";
}elseif ($mod5) {
echo "Yang";
}else{
echo $a;
}
$a++;
}
}
}
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment