Embed presentation
Download to read offline


The user enters two numbers and selects an operation: addition, subtraction, multiplication, or division. Based on the operation selected, the code uses a switch statement to perform the calculation on the two numbers and print the result. It handles invalid input by printing a "wrong input" message.

