Guest User

Untitled

a guest
Sep 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. using System;
  2. class Program {
  3. static void Main(string[] args) {
  4. for (int i = 1; i < 100; i++) {
  5. if (i % 3 == 0 && i % 5 == 0) Console.WriteLine("FizzBuzz");
  6. else if (i % 3 == 0) Console.WriteLine("Fizz");
  7. else if (i % 5 == 0) Console.WriteLine("Buzz");
  8. else Console.WriteLine(i);
  9. }
  10. }
  11. }
Add Comment
Please, Sign In to add comment