0

Unexpected message shows

When I am ruuning this code.Why does the unexpected message show in the bottom of output?My output is okay. sample input: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 https://code.sololearn.com/c2H0qWNdTzeK

16th Apr 2022, 8:04 AM
KAZI FAISAL MAHMUD
KAZI FAISAL MAHMUD - avatar
1 Antwort
0
If you want to chain conditions together, you need to use logical operators: https://docs.microsoft.com/en-gb/cpp/c-language/c-logical-operators?view=msvc-170 The comma operator has a different meaning in C. If you want the entire condition to be true only if both operands are true, you can use &&, e.g. i < 10 && j >= 0 i <= 20 && l >= 0
16th Apr 2022, 8:26 AM
Shadow
Shadow - avatar