Skip to content

Instantly share code, notes, and snippets.

@joymon
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joymon/6f445b0a4106a6e9ffe5 to your computer and use it in GitHub Desktop.
Save joymon/6f445b0a4106a6e9ffe5 to your computer and use it in GitHub Desktop.
Main function calling WriteFactorial in sync
public void Main()
{
for (int counter = 1; counter < 5; counter++)
{
if (counter % 3 == 0)
{
WriteFactorial(counter);
}
else
{
Console.WriteLine(counter);
}
}
Console.ReadLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment