title: Finding the Largest Digit in C++
body: <ol>
  <li>Input a 3-digit integer.</li>
  <li>Print the largest digit in the integer (Tip: use % 10 to get the rightmost digit, and / 10 to remove the rightmost digit).</li>
  </ol>
  <pre><code>Input: 173
  Expected Output: 7
  </code></pre>
  <p>We were given this activity 2 days old and still couldn't solve this mystery. Here's my own code which doesn't match the given expected output above:</p>
  <pre><code>#include&lt;iostream&gt;
  using namespace std;
  
  int main() {
  
     int num, result;
  
     cin &gt;&gt; num;
      if(num &gt; 0) {
          result = num % 10;
          num / 10;
          cout &lt;&lt; result;
      }
  
     return 0;
  }
  </code></pre>