Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ 3.5.2: Basic if-else expressions. Complete the if-else statement to output Above -10 if the value of inVal is above -10. Otherwise, output -10 or

C++ 3.5.2: Basic if-else expressions.

Complete the if-else statement to output "Above -10" if the value of inVal is above -10. Otherwise, output "-10 or less".

Ex: If the input is -8, then the output is: Above -10

#include using namespace std;

int main() { int inVal; cin >> inVal; if (/* Your code goes here */) { cout << "Above -10" << endl; } else { cout << "-10 or less" << endl; }

return 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_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

Big Data In Just 7 Chapters

Authors: Prof Marcus Vinicius Pinto

1st Edition

B09NZ7ZX72, 979-8787954036

More Books

Students also viewed these Databases questions

Question

How is the IRR on a project related to the YTM on a bond?

Answered: 1 week ago

Question

14.6 Spearman Rank Correlation

Answered: 1 week ago

Question

Guidelines for Informative Speeches?

Answered: 1 week ago