ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

is contain zero
Posted by shahed adnan 15 Feb 2011 23:42
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