int result = 0; switch (choice) { & case 1: result = num1 + num2; break; & case 2: result = num1 * num2; break; & case 3: result = num1 - num2; break; } cout << "Result is " << result << endl; return 0; }
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments