Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: for loop that calculates the total of a series of numbers

    Does it compile, execute and give the correct answer?
  2. Re: for loop that calculates the total of a series of numbers

    One problem could be the code is using int variables which will do int divisions:
    9/10 = 0
    Change the variable type to double to get better results.
Results 1 to 2 of 2