Search:

Type: Posts; User: Junky

Search: Search took 0.12 seconds.

  1. Replies
    8
    Views
    3,523

    Re: Cinema Seating arrangment

    Yes a better solution would be to use a 2D array and allow patrons to choose which seats instead on allocating them linearly.
  2. Replies
    8
    Views
    3,523

    Re: Cinema Seating arrangment

    Both you and aesguitar suggested using an array which is overkill for this. You would need two loops one to fill the array and one to print it. If you can work out the logic of how to fill the array...
  3. Replies
    8
    Views
    3,523

    Re: Cinema Seating arrangment

    Why do you need an array?
    What part of my simple algorithm above (which doesn't need an array) didn't you understand?
  4. Replies
    8
    Views
    3,523

    Re: Cinema Seating arrangment

    Use a single loop that iterates seats number of times. Inside have an if statement when counter reaches taken swap over to printing o's.
Results 1 to 4 of 4