2010-10-28, 01:06 PM
Kalovale Wrote:I expect it to return exactly those values, as for the "else" part, that's what perplexes me. I want to filter out the non-teen values with a view that after the method, n consists of only teens.
Wouldn't it be smarter for fixTeen to return 0 if it is 13, 14, 17, 18 or 19, and n otherwise? Then you can just do fixTeen(a) + fixTeen(b) + fixTeen©;

