Fruit Machine



Extension Task

Tweak your code to:
  • Add more fruits to the fruit machine by adding Watermelons and Kiwis!
  • Display "1 Pair !" if fruit1 and fruit2 are the same.
  • Display "1 Pair !" if fruit2 and fruit3 are the same.







101Computing.net