Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started