Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    1,683

    Re: If Else loop or do while loop

    Enclose the program in the loop that is controlled by the user's response of "y"
    For example:

    initialize user's answer to "Y"
    while(user says "Y") {
    do the work here
    ask user if he wants...
  2. Replies
    9
    Views
    1,683

    Re: If Else loop or do while loop

    Use a while() loop


    BTW The code should NOT hide }s at the end of statements. }s should mostly be on a line by themselves in column with the line with the pairing {
Results 1 to 2 of 2