|
|
вернуться в форумОбщий форумis 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 Послано KALO 16 фев 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 |
|
|