+ 3
What have you already tried? Post your code. Basically, you'll do it exactly how you read out your question here. We know that we only want the first 50 people to receive discount, so we'll want to have a counter to keep track of which number we're on. For each person, increase the counter by one. IF the count is less than or equal to 50 THEN give them a discount ELSE give them the normal price.
2nd Nov 2017, 6:10 PM
AgentSmith