Have I understood the question correctly?, it seems working even for negative number, but getting "Be sure the program works for negative numbers", can't find what's wrong? Could anyone help ?