Fact or Real (yes, it means the same)

Photograph credit

I know, dumb title. I couldn’t come up with anything else and I really did not feel like naming this blog “Factorial”. So it is what it is. Ok This is the last WSQ until now, if any of you guys have not done this program well I hope this helps. I tried to make my to tutorial short and simple to understand.

code:

Factorial.cpp

FactorialCalculator.cpp

If you have any questions, just ask, I’m happy to help. My name is Orlando Lara and I’m in Ken’s TC1017 class at 10:00 Tuesdays and Fridays. Here are some links to help you out:

http://www.cplusplus.com/doc/tutorial/introduction/

http://www.tutorialspoint.com/cplusplus/cpp_templates.htm

In my tutorial I show you how to do the factorial with a loop and function but you can also do it with recursion. Here is a very useful video about that.

Remember that a program can be as complicated as you want. In this tutorial I just show the basics of how it works and one way of successfully making the program but this is too simple. You have to make it more elaborate. Which is why a gave you two links of codes at the beginning of the blog. The first one is the one that appears in the tutorial and the second one is my original code in case you want to take a look at it and get some ideas.

Made by Orlando Lara

CC BY-SA 4.0 Fact or Real (yes, it means the same) by Orlando Lara is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.