Question #242713

Write an expression that will cause the following code to print "less than 20" if the value of userAge is less than 20.


Expert's answer

// Internal code snippet 
// comparing the value of the variable with userAge 20
if (userAge < 20) 
    {
      std::cerr<< "less than 20";
    }

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS