Create a program that simulates a basic calculator using an interactive menu. The program must process options using functions until the user chooses to exit.
do-while loop to keep the menu active.switch statement to select the operation based on the input.sumar (add), restar (subtract), and multiplicar (multiply).A sequence of integers: first the menu option (1, 2, 3, or 4) and, for calculation options, the two integers to operate on. The program terminates with option 4.
The result of each operation preceded by the text Resultado: . No output should be produced upon exiting.
Input:
1 10 5
3 6 7
4
Output:
Result: 15
Result: 42
`