Created
January 17, 2023 10:56
-
-
Save Titory0/2d2c82f2bce6e9bc7ae086979b43a7a2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public static string ft_fizzbuzz(int number) { | |
if(number %3 ==0 && number %5 ==0) | |
{ | |
return("FizzBuzz"); | |
} else | |
if(number %3 ==0) | |
{ | |
return("Fizz"); | |
}else | |
if(number %5 ==0) | |
{ | |
return("Buzz"); | |
} | |
return ""; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment