Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CHALLENGE 3.4.2: Basic if-else expressions. ACTIVITY 464264 3417210.qx3zqy7 Start Complete the if-else statement to output Less than -20 if the value of inVal is less

CHALLENGE 3.4.2: Basic if-else expressions. ACTIVITY 464264 3417210.qx3zqy7 Start Complete the if-else statement to output "Less than -20" if the value of inVal is less than -20. Otherwise, outpu Ex: If the input is -22, then the output is: Less than -20 1 #include 2 using namespace std; 12345678 4 int main() { int inval; cin >> inval; 9 if (* Your code goes here */) { cout << "Less than -20" << endl; 91234 10 11 } 12 13 14 } TTT 15 16 17 } else { Check I cout << "-20 or more" << endl; return 0; Next level 2 3

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

Students also viewed these Databases questions