Firstly, its nowhere mentioned in the question that good produced needs to be an integer!
Existence of such demand in real life..i cannot comment on that.
If there is fixed cost (lets say 10) then Profit will always be equal to 20-10 = 10. So, no matter what amount he produces, he'll always get 10rs.
:)