Switch Case
This exercise wants you to practice the switch-case construct.
-
Consider we have 3 car companies:
BMW, Ford and Peugeot.
- When a user inputs the company name "BMW", show "German car".
- When a user inputs "Ford", show "American car".
- When a user inputs "Peugeot", show "French car".
- Add a default case where the text value is "Unknown car name".
Example: BMW
Example: Volvo