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