On Sat, Dec 26, 2009 at 6:42 PM, Anup Joshi <[email protected]> wrote:
> but i didnt want to use the ternary operator, if-conditional > or any loop. Why? If I found you deliberately obfuscating code like this in your job where I also worked, you wouldn't have a job for much longer. In real life, you do not deliberately obfuscate code like this. If this is a requirement of an exam question, you're doing the wrong course for a programmer - they're teaching you bad habits, and not what you should be learning. If this is a job interview question, you don't want to work there since all the code is likely to be obfuscated - see my first point. -- PJH http://shabbleland.myminicity.com/ http://www.chavgangs.com/register.php?referer=9375 http://www.kongregate.com/?referrer=Shabble
