Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- seatsavailable = 100
- INPUT seat
- IF seat = 0 THEN:
- seat = 1
- Colour = Cyan
- seatsavailable = seatsavailable – 1
- add seat to list
- ELSE:
- seat = 0
- Colour = Magenta
- seatsavailable = seatsavailable + 1
- remove seat from list
- ENDIF
- OUTPUT seatsavailable
- OUTPUT list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement