Question: What will be the output? string result = ; string input = 2 6 1 8 3 5 ; int i
What will be the output?
string result ;
string input ;
int i ;
do
switch inputi
case :
result a;
break;
case :
result b;
break;
case :
result c;
break;
case :
result d;
case :
result e;
result f;
case :
break;
default:
result x;
i;
while inputi;
cout result endl;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
