Question: CHALLENGE ACTIVITY 12.1.2: Basic if-else expression. Start 1 Write an expression that will cause the following code to print greater than 20 if the value

 CHALLENGE ACTIVITY 12.1.2: Basic if-else expression. Start 1 Write an expression

CHALLENGE ACTIVITY 12.1.2: Basic if-else expression. Start 1 Write an expression that will cause the following code to print "greater than 20" if the value of userAge is greater than 20. 2 3 1 #include 2 using namespace std; 3 4 int main() { 5 int userAge; 6 7 cin >> userAge; // Program will be tested with values: 19, 20, 21, 22. 8 if (\* Your code goes here */) { 10 cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!