|
|
back to boardCommon Boardis contain zero how can i check an integer ,is that contain zero? i know a solution using char array. but on the mentioned case, i m unable to do. help me..plz. Re: is contain zero Posted by KALO 16 Feb 2011 00:40 boolean containZero(int x){ do{ if (x%10==0) return true; x/=10; }while(x!=0) return false; } Edited by author 16.02.2011 00:45 |
|
|