Search:

Type: Posts; User: GregBrannon

Search: Search took 0.18 seconds.

  1. Re: Factorial of a Number (program completed but doubt in that)

    I'm glad you figured it out. We often learn more by finding and correcting our own "silly" mistakes than we do by being perfect every time.
  2. Re: Factorial of a Number (program completed but doubt in that)

    Trace your code. Pick a small value of 'a', like 4 or 5, and construct a table that contains the value of each variable, i, j, and a after each for loop completes for both cases. You will see that...
  3. Re: Factorial of a Number (program completed but doubt in that)

    Please post your code in code tags.

    I don't understand why you're asking, "If I change my code, why does the output change?" Isn't that expected, even obvious? Can you state your question more...
Results 1 to 3 of 3