title: Recursively check if all digits of a number are different
body: <p>How can I check recursively if all the digits of an integer are different numbers in C++</p>
  
  <pre><code>void Check(int n)  
  {
  
      if (n &lt; 10)  
          return;  
      else  
      {
          bool eq = !(n % 10 == ((n / 10) % 10));  
          if (eq == true)  
          {  
              Check(n / 10);  
          }  
      }  
  } 
  </code></pre>