Question: Code must be in C++ Question 8. Write both if-else and switch control structure code for the following diagram. Output statements shown in the diagram
Code must be in C++

Question 8. Write both if-else and switch control structure code for the following diagram. Output statements shown in the diagram should be included in the code. What is the output if sl="Alexis" and s2="Alex" (10 marks) string s1 =""; string s2 =""; cin>>s1>>s2; s1!=s2 couts2 s1-521 cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
