Search:

Type: Posts; User: Iamanewbie

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    4,199

    Thanks! I solved the problem by defining...

    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...
  2. Replies
    2
    Views
    4,199

    factorial program: 10! ??

    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...
Results 1 to 2 of 2