Initial commit

This commit is contained in:
Mark J Price 2022-02-18 12:13:25 +00:00
parent ca7684985d
commit 49bdd4dda1
60 changed files with 1527 additions and 30 deletions

View file

@ -0,0 +1,26 @@
for (int i = 1; i <= 100; i++)
{
if (i % 15 == 0)
{
Write("FizzBuzz");
}
else if (i % 5 == 0)
{
Write("Buzz");
}
else if (i % 3 == 0)
{
Write("Fizz");
}
else
{
Write(i);
}
// put a comma and space after every number except 100
if (i < 100) Write(", ");
// write a carriage-return after every ten numbers
if (i % 10 == 0) WriteLine();
}
WriteLine();