Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

=====Help get outputs. Thanks======== #include #include #include using namespace std; int main() { int num1; int num2; cout < < fixed < < showpoint <

=====Help get outputs. Thanks========

#include

#include

#include

using namespace std;

int main()

{

int num1;

int num2;

cout << fixed << showpoint << setprecision(2);

cout << "Enter two integers: ";

cin >> num1 >> num2;

cout << endl;

if (num1 != 0 && num2 != 0)

cout << sqrt(abs(num1 + num2) + 0.5) << endl;

else if (num1 != 0)

cout << floor(num1 + 0.5) << endl;

else if (num2 != 0)

cout << ceil(num2 + 0.5) << endl;

else

cout << 0 << endl;

return 0;

}

What is the output if the input is -23 8?

What is the output if the input is 12 32?

What is the output if the input is 15 0?

What is the output if the input is 0 -36?

What is the output if the input is 0 0?

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

Step: 3

blur-text-image

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 Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago