Loading, please wait...
Become An Author
SIGN UP
LOGIN
Log in
Forgot Password
Sign in
Toggle navigation
Home
Tutorial Library
Articles
Videos
E Books
News
Code Snippet
Free MCQ's
Full Forms
Shortcut Keys
MVB Portal
Hindeez
C# Source Code
Run
Save
public class Program { public static void Main() { for (uint i = 1; i <= 4; i++) { string s = null; if (i % 3 == 0) s = "Fizz"; if (i % 5 == 0) s += "Buzz"; System.Console.WriteLine(s ?? i.ToString()); } } }
Output