question 42 Loops & Iteration · easy
The stamp card that always says 1
A café records each visit on a stamp card as an X; a - is an empty box. Six or more stamps earn a free coffee. The program prints Stamps: 1 for every card, and nobody ever gets a coffee. Fix it.
Keepthe
card = ... line first. Check runs your program again with other cardsPrints
Stamps: 6, then Free coffee! (only for 6 or more stamps)Expected output2 lines
- 1Stamps: 6
- 2Free coffee!