返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. bool abc(int k,int x);
  5. {
  6.    if(x%k==0)
  7.    {
  8.        return true;      
  9.    }else  
  10.    {
  11.        while(x>0)
  12.        {
  13.           if(x%10==k)
  14.           {
  15.              return true;        
  16.           }      
  17.           x=x/10;
  18.        }   
  19.    }      
  20. }
  21. int main()
  22. {
  23.     system("pause");
  24.     return 0;
  25. }
複製代碼

TOP

返回列表