From: dirty d. <dir...@ms...> - 2004-06-21 19:45:19
|
can someone please explain the significance of the second if statement? thnx pete if((number>=10000 && number <100000)) { if (((number/10000) == (number%10)) && (((number/1000)%10) == ((number/10) %10))) cout<<number<<" is a palindrome"<<endl; else cout <<number<<" is not palindrome"<<endl; } else{ cout<<"You did not enter a 5-digit number!"<<endl; _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ |