I'm trying to solve this repetition exercise:
Make sure that you start a variable n (number) as 1 and a factorial (result) as 1 and varies from 1 to 10.
Code:
int fatorial = 1;
for (int n = 1; n <= 10; n++)
{
}
I can not do it at all. I've tried it in many ways, but I always find it difficult to get the factorial of all numbers with just a looping. can anybody help me? : D