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";
    }
LATEST TUTORIALS
APPROVED BY CLIENTS