title: Is this flowchart right?
body: <p>I've developed a C program that can calculate the value of a sin function using Taylor series expansion.  I've also drawn a flowchart for the program. The source code is given below:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;math.h&gt;
  
  int fact(int n)
  {
   if(n==0)
    {
      return 1;
    }
   else
      return n*fact(n-1);
  }
  
  int main()
  {
   int l,i,t=1;
   float deg,rad,val=0;
  
   printf("Enter degree of sin: ");
   scanf("%f",&amp;deg);
  
   printf("Enter limit of Taylor series: ");  
   scanf("%d",&amp;l);                            
   rad = (deg*3.142857)/180;                  
  
   for(i=1;i&lt;=l;i+=2)
    {
     val = val + (t*pow(rad,i)/fact(i));     
     t = t*(-1);                         
    }
  
   printf("\nValue calculated by program, using Taylor Series:\n");
   printf("Sin(%f) = %f\n",deg,val);
   printf("\nValue calculated using library function:\n");
   printf("Sin(%f) = %f\n",deg,sin(rad));
  
   getch();
   return 0;
  }
  </code></pre>
  
  <p>And here's the flowchart for the program:<br>
  <img src="https://i.stack.imgur.com/Ovf3T.png" alt="Flowchart Page:1"><br>
  <img src="https://i.stack.imgur.com/zkZiR.png" alt="Flowchart Page: 2"></p>
  
  <p>So is this flowchart right for the program? Are there any mistakes? I am a fresher in programming and don't have a good knowledge in drawing flowcharts.</p>