Created
June 9, 2016 14:39
-
-
Save masaru-b-cl/b364e81740040ac46498479a51960398 to your computer and use it in GitHub Desktop.
obvious implementation
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
using System; | |
namespace FizzBuzz | |
{ | |
public class FizzBuzzer | |
{ | |
public FizzBuzzer() | |
{ | |
} | |
public string Say(int number) | |
{ | |
if (number % 3 == 0) | |
{ | |
return "Fizz"; | |
} | |
return $"{number}"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment