Created
June 24, 2015 16:19
-
-
Save joymon/f4102e669fc58dd01856 to your computer and use it in GitHub Desktop.
Main method calling the factorial writing using TPL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Main() | |
{ | |
for (int counter = 1; counter < 5; counter++) | |
{ | |
if (counter % 3 == 0) | |
{ | |
WriteFactorialAsyncUsingTask(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