WSQ09 – Factorial Calculator

Hey guys, here is an other #wsq.
This time its about factorial numbers

HERE IS THE CODE   factorial

Well, we start as always with #include and using namespace

then we create two variables, one wich is going to be the number the user enters and the other is going to be the factorial

The factorial is created by a for()  }

for(int a=1; a<=num ;a++)
{

factorial= factorial*a;

}
Here is one page provided by Canadamike, he helps me with this wsq, this is usefull
http://fahad-cprogramming.blogspot.mx/2013/02/program-to-find-factorial-in-C-Programming.html

CC BY-SA 4.0 WSQ09 – Factorial Calculator by alibarramg is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.