Skip to content
Snippets Groups Projects
Commit acb34603 authored by Sibidharan's avatar Sibidharan :speech_balloon:
Browse files

Delete index.php

parent 6fb5cebc
Branches master
No related tags found
No related merge requests found
<?php
class YinYang
{
static function provera($a, $b)
{
if ($a > $b){
die("Please check input values, make sure that start and end values are correct.");
}else{
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