Consider the following program:
#include
#include
using namespace std;
int main()
{
int num1;
int num2;
cout << "Enter two integers: ";
cin >> num1 >> num2;
cout << endl;
if (num1 != 0 && num2 != 0)
cout << sqrt(fabs(num1 + num2 + 0.0)) << endl;
else if (num1 != 0)
cout << floor(num1 + 0.0) << endl;
else if (num2 != 0)
cout << ceil(num2 + 0.0) << endl;
else
cout << 0 << endl;
return 0;
}
a. What is the output if the input is 12 4?
b. What is the output if the input is 3 27?
c. What is the output if the input is 25 0?
d. What is the output if the input is 0 49?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.