repl.it
@kironroy/

fizzbuzzes

C#

No description

fork
loading
Files
  • main.cs
  • FizzBuzz1.cs
  • FizzBuzz2.cs
  • FizzBuzz3.cs
  • main.exe
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;

// https://www.c-sharpcorner.com/blogs/fizzbuzz-in-c-sharp
// https://www.csharpstar.com/csharp-program-to-implement-fizzbuzz/

namespace FizzBuzzs
{
    class Program
    {
        static void Main(string[] args)
        {
          Console.WriteLine();
          Console.WriteLine("      *** Three ways to create a FizzBuzz test*** ");
            
            // fizzbuzz 1
            Console.WriteLine("FizzBuzz 1");
            Console.WriteLine(); // breakline
            
            FizzBuzz1.fizzBuzz1();
            
            Console.WriteLine(); // breakline
            Console.WriteLine(); // breakline
            
            // fizzbuzz 2
            Console.WriteLine("FizzBuzz 2");
            Console.WriteLine(); // breakline
            
            FizzBuzz2.fizzBuzz2();
            
            Console.WriteLine(); // breakline
            Console.WriteLine(); // breakline
           
           // fizzbuzz 3
            Console.WriteLine("FizzBuzz 3");
            Console.WriteLine(); // breakline
            
            FizzBuzz3.fizzBuzz3();
            
            Console.WriteLine(); // breakline
            Console.WriteLine(); // breakline

          }

      }
}