Skip to content

Instantly share code, notes, and snippets.

@Titory0
Created January 17, 2023 10:56
Show Gist options
  • Save Titory0/2d2c82f2bce6e9bc7ae086979b43a7a2 to your computer and use it in GitHub Desktop.
Save Titory0/2d2c82f2bce6e9bc7ae086979b43a7a2 to your computer and use it in GitHub Desktop.
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