Question: QUESTION 1 a) Trace the output for this program segment if input data for marki, mark2 and mark3 are 57, 43 and 87 respectively. Create
QUESTION 1 a) Trace the output for this program segment if input data for marki, mark2 and mark3 are 57, 43 and 87 respectively. Create a tracing table to show the steps: cin >> marki >> mark2 >> mark3; if (marki > mark2 && markl >- mark3) a - marki; if (mark2 >= mark3) b = mark2; else b-mark3; else if (mark2 > mark3) 1 a = mark2; if (mark3 >= marki) b-mark3; else b - marki; > else a mark3; if (markl >= mark2) b - marki: else b = mark2;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
