if n = 0 or n = 1 ?
Послано
Tanim 3 апр 2018 05:47
what will the output if
input = 1 or 0 and why?
Re: if n = 0 or n = 1 ?
Послано
Sajib 11 мар 2020 20:11
if n=0 then q=10
if n=1 then q=1
Re: if n = 0 or n = 1 ?
Послано
Roman 5 апр 2020 17:22
You are right!
Re: if n = 0 or n = 1 ?
Should be 11 though, I don't know why authors decided on 1. The solution requires a product of digits. 1 by itself isn't a product at all.
Edited by author 19.05.2020 18:51