tag:blogger.com,1999:blog-20309183.post115496506777455249..comments2012-01-20T21:42:56.380+05:30Comments on puretechie: Is this methods fool proof?Shantanuhttp://www.blogger.com/profile/00088855664889365698noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-20309183.post-1155019666007914812006-08-08T12:17:00.000+05:302006-08-08T12:17:00.000+05:30Or make "i" an unsigned integer :)Or make "i" an unsigned integer :)Arvindhttps://www.blogger.com/profile/16847584348017715735noreply@blogger.comtag:blogger.com,1999:blog-20309183.post-1155019609643350502006-08-08T12:16:00.000+05:302006-08-08T12:16:00.000+05:30so what about the case when "i" is negative, the r...so what about the case when "i" is negative, the result of "i%2" will be negative, that means it doesn't consider the case of negative values. Solution can be, "abs(i%2) == 1". This might solve it. Other than this I couldn't find any other problem.Arvindhttps://www.blogger.com/profile/16847584348017715735noreply@blogger.com