Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Please use c++ for this problem. thank you In the following code, correct any errors that would prevent the program from compiling or running: include

Please use c++ for this problem. thank you

In the following code, correct any errors that would prevent the program from compiling or running:

include

main () { int num1, num2; bool found; cout << "Enter two integers: ; cin >> num1 >> num2; cout << endl; if(num1 >= num2) && num2 > 0 switch (num % num2) { case 1 found = (num / num2) >= 6; break; case 2: case 3 num1 = num2 / 2; brake; default: num2 = num1* num2; } else { found = (2 * num2 < num1); if found cin >> num2 num 1 = num2 - num1; temp = (num1 + num2) / 10; if num2 { num1 = num2; num2 = temp; } cout << num1 << " " << num2 << endl; }

a - What is the output if the input is 10 8?

b - What is the output if the input is 4 9?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students explore these related Databases questions