Question: Vikki has asked for your help completing the following program: #include using namespace std; int main(){ int a; cin >> a; //TODO Print Less
Vikki has asked for your help completing the following program: #include using namespace std; int main(){ int a; cin >> a; //TODO Print "Less" if a is less than 5. //TODO Print "More" if a is greater than 5. return 0; } Select the best option for Vikki to complete her TODO list. Hint: consider what will happen when a is exactly 5. if (a < 5) cout < < "Less"; else cout < < "More": C++ does not allow this behavior. if (a < 5) cout < < "Less": else if (a > 5) cout < < "More": cout < < "More" if (a < 5); cout < < "Less" if (a not < 5): Activate Windows Go to Settings to activate Windows.
Step by Step Solution
3.47 Rating (150 Votes )
There are 3 Steps involved in it
The detailed answer for the above question is provided below answer is opti... View full answer
Get step-by-step solutions from verified subject matter experts
