+ 6

I entered 0 instead of n under the else clause to fill in the last blank in the following.

https://www.sololearn.com/post/179083/?ref=app Why was my answer marked incorrect?

20th Nov 2019, 8:11 PM
Sonic
Sonic - avatar
3 Respostas
+ 8
Sonic it's because in question note has mentored in which it's said if the input is 0 then you have to print n. And there is no any other possibilities so n is the correct answer in this question due to specific note the question is made an tricky part as whatever you type n or 0 answer would come 0 so the maker of the quiz might want to use this for generate confusion
20th Nov 2019, 8:21 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 5
Is it because the question says print n? But 0 is n in this case.
20th Nov 2019, 8:14 PM
Sonic
Sonic - avatar
+ 5
GAWEN STEASY that's what I thought but 0 is n in this case, but OK.
20th Nov 2019, 8:51 PM
Sonic
Sonic - avatar