Adblock breaks this site

Help Guys ...

Discussion in 'Programming General' started by Imdead24, Oct 8, 2011.

  1. Imdead24

    Imdead24 Newcomer

    Joined:
    Oct 8, 2011
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0
    Help Guys ...

    can you help me with this problem ...

    example:

    its just an example .... im stuck with that .. that how i can make that if i enter Y , 5 times it will show Customer 5 and then add the price ...
     
  2. wackywamba

    wackywamba Guru

    Joined:
    Jul 14, 2005
    Posts:
    1,358
    Referrals:
    0
    Sythe Gold:
    1
    Help Guys ...

    Not sure what your question is exactly?

    Just use a while loop by the sounds of things.
     
  3. Ortho

    Ortho Active Member
    Banned

    Joined:
    Sep 18, 2011
    Posts:
    157
    Referrals:
    0
    Sythe Gold:
    0
    Help Guys ...

    Make a counter for each customer. Whenever chicken is chosen for customer 1, counter1 += 5

    Also, Y makes it go through the loop again, it doesn't necessarily mean the user is adding another chicken to the order
     
< Making java scripts | [Android] Power Tetris - My first android app work in progress >


 
 
Adblock breaks this site