Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Test()
- {
- for (int i = 0; i < 100; i++)
- {
- string first = (i % 3 == 0) ? "" : "FIZZ";
- string second = (i % 5 == 0) ? "" : "BUZZ";
- string firstsecond = first + second;
- string output = string.IsNullOrEmpty(firstsecond) ? i.ToString() : firstsecond;
- Debug.Log(output);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement