C-17-Q139mediumsingle_mcq
In Practical Problem #2 (mark ≥ 40), the textbook prints "You have passed" when the input is:
In Practical Problem #2 (mark ≥ 40), the textbook prints "You have passed" when the input is:
- a40
- b39
- c0
- d-10
ব্যাখ্যা
The condition tests mark ≥ 40, and 40 satisfies this inclusive comparison, so "You have passed" is printed. The other values (39, 0, −10) are all below 40 and would fail the test.