title: How to calculate the total sum of the multiplication table
body: <p>I have generated the table and want to find the total sum of the table.</p>
  
  <p>The code is as follows: </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int no, i, mult, sum;
  
      printf("Enter the number you wish to multiply: \n");
      scanf("%d", &amp;no);
  
      printf("Enter how many times you want to multiply the number: \n");
      scanf("%d", &amp;mult);
  
      printf("Multiplication is as follows: \n");
  
      for( i = 1; i &lt;= mult; i++ )
      {
          printf("%d X %d = %d\n", no, i, i * no);
      }
  }
  </code></pre>
  
  <p>How can I get the total sum of the overall table?</p>