Thanks! I solved the problem by defining 'factorial' as 1 again before the start of the inner loop. I hadn't thought of that!
I hadn't thought about avoiding the inner loop, but that would be...
Type: Posts; User: Iamanewbie
Thanks! I solved the problem by defining 'factorial' as 1 again before the start of the inner loop. I hadn't thought of that!
I hadn't thought about avoiding the inner loop, but that would be...
I'm writing a program that's supposed to compute and print the factorials of the numbers 1-10, but when I compile and run it, it displays 0 where the factorial of ten should be. I messed with my...