The document contains code for a C++ program that takes in two integers and an operator from the user and performs the mathematical operation on the integers. It uses conditionals and a switch statement to handle the different operators and prevent division by zero.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
8 views2 pages
Question 4
The document contains code for a C++ program that takes in two integers and an operator from the user and performs the mathematical operation on the integers. It uses conditionals and a switch statement to handle the different operators and prevent division by zero.