Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A) hi-5's both hands of a single person
- -----------
- for each hand on the person:
- hi-5 dat hand
- -----------
- (runs twice because two hands on one person)
- B) hi-5's both hands of each person in the room
- -----------
- people_counter = 2
- for each person
- for each hand on the person:
- hi-5 dat hand
- -----------
- (runs four times because two hands on each of the two people)
- C) hi-5's both hands of each person in each room
- -----------
- room_counter = 2
- people_counter = 2 #assume each room has 2 people in it
- for each room
- for each person
- for each hand on the person:
- hi-5 dat hand
- -----------
- (runs eight times because two hands on each of the two people in both rooms):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement