title: Algorithm to find the smallest number in an array in C
body: <p>I've searched around, but I haven't found anything about my question.</p>
  
  <p>I want create an algorithm in C that finds the smallest number in an array that can hold 10 values.</p>
  
  <pre class="lang-c prettyprint-override"><code>#include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;time.h&gt;
  
  int main(void) {
      int array[10];
      int i, smaller;
  
      srand(time(NULL));
  
      for (i = 0; i &lt; 10; i++) {
          array[i] = rand() % 100 + 1;
      }
  
      // Find smaller number in the array
      for (i = 0; i &lt; 10; i++) {
          ...
      }
  
      printf("Smaller: %d\n", smaller);
      return 0;
  }
  </code></pre>
  
  <p>Any tips on how can I do?</p>