Search:

Type: Posts; User: Junky

Search: Search took 0.18 seconds.

  1. Replies
    12
    Views
    1,044

    Re: Using the ? operator inside of a for loop

    Once again I direct your attention to what is happening (or not happening) inside the loop.
  2. Replies
    12
    Views
    1,044

    Re: Using the ? operator inside of a for loop

    You are casting temp to an int which is resulting in a 0 being appended to the end of each line. If this is what you want then fine. If it is not what you want then you need to change what your print...
  3. Replies
    12
    Views
    1,044

    Re: Using the ? operator inside of a for loop

    Look at exactly what is being printed inside the for loop.
  4. Replies
    12
    Views
    1,044

    Re: Using the ? operator inside of a for loop

    I cannot see your entire code.
  5. Replies
    12
    Views
    1,044

    Re: Using the ? operator inside of a for loop

    If your aim is to print out 12 values (one per month) for fives years then you will need to print 12 values per line and 5 lines. How many loops do you think are required?
Results 1 to 5 of 5