Handing error message when negative numbers are present