title: C program to calculate simple interest payments
body: <p>Im trying to write this code for school, and im absoultly stuck on what im doing wrong, if anyone could just point me in the right direction, that would be helpful. Trying to learn as much as i can.
  My program doesnt calculate out, how much is owed at the end of each month, after subtrackting the payment, and then adding the interest.
  IT just displays the same value. </p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  int main()
  {
  float loan;
  float interest;
  int n;
  float outstanding;
  float outstanding2;
  float princeable;
  float payment;
  
  
  printf("\nEnter the amount of the loan: \n ");
  scanf("%f" , &amp;loan);
  printf("\nEnter monthly interest percentage\n ");
  scanf("%f" , &amp;interest);
  printf("\nEnter monthly payments: \n ");
  scanf("%f" , &amp;payment);
  printf("\nEnter number of monthly Payments: \n ");
  scanf("%i" , &amp;n);
  
  
  while (n &gt;= 0) {
      outstanding = (loan - payment);
      outstanding = (outstanding * (1 + (interest/100)));
  
  
      printf("\Outstanding Balance after %i =%.2f\n\n", n, outstanding);
      n--;
  }
  
  return 0;
  
  }
  </code></pre>