Search:

Type: Posts; User: maple1100

Search: Search took 0.16 seconds.

  1. Replies
    5
    Views
    1,025

    [SOLVED] Re: Array and for loop

    Oh, the value of "hits" is not being reset so it just keep adding :) thus it seem like the value are adding each other. Thanks you! Also, is the proper way to reset a counter is to initialize the...
  2. Replies
    5
    Views
    1,025

    [SOLVED] Re: Array and for loop

    Please enter the amount of trials: 5

    Please enter the amount of dart per trials: 1000
    3.064
    6.196
    9.34
    12.48
    15.62
    Value of storagePI at index 2 is 9.34
    - As you can see it seem like the...
  3. Replies
    5
    Views
    1,025

    [SOLVED] Array and for loop

    Could anyone help me figure out why is the value inside double [] storagePI is adding onto each other? I want each to have it own value each time the outer for loop run but it is adding the previous...
Results 1 to 3 of 3