You describe the output for a single number as input, but your program reads two numbers from <>. The intention is not clear to me.
Don't know if this is related to your problem.
Greetings,
-jo
In reply to Re: problem while solving basic dynamic programming question
by jo37
in thread problem while solving basic dynamic programming question
by yujong_lee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |