Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    1,782

    Re: Homework assignment (beginner)

    for (int a = 1; spaceCount < 1; spaceCount--)


    Look at the condition for this if statement. If true the loop goes around again.
    What is the value of spaceCount when you enter the for ()...
  2. Replies
    5
    Views
    1,782

    Re: Homework assignment (beginner)

    for (int a = 1; spaceCount == 0; spaceCount--);
    No ending ; here. It ends the WHOLE if statement
    What is the variable a used for?

    How does the condition part of the if statement control the...
Results 1 to 2 of 2