fork(1) download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Sample
  7. {
  8. internal class Lesson3
  9. {
  10. static void Main()
  11. {
  12. for (int i = 1; i >=100; i++)
  13. {
  14. if(i % 3 == 0)
  15. {
  16. Console.WriteLine("Fizz");
  17. }
  18.  
  19. else if(i % 5 == 0)
  20. {
  21. Console.WriteLine("Buzz");
  22. }
  23.  
  24. else if(i % 3 == 0 && i % 5 == 0)
  25. {
  26. Console.WriteLine("FizzBuzz");
  27. }
  28.  
  29. else
  30. {
  31. Console.WriteLine(i);
  32. }
  33. }
  34. }
  35. }
  36. }
  37.  
Success #stdin #stdout 0.02s 23716KB
stdin
Standard input is empty
stdout
Standard output is empty