Best answer
1 2 3 4 5 6
|
if (x > 7)
cout << x + 3;
else if (x > 4)
cout << x - 4;
else
cout << x + 1;
|
a. 3, 4, 7
b. 4, 10, 15
c. 3, 5, 11
Why ans c is will be the best for checking the above code fragment?
Please don't post your homework on this site, ask specific questions then we will help you
It is the only one that will test all paths.
Topic archived. No new replies allowed.