title: Evaluating Taylor series expansion of e^x in C
body: <p>I am very new to C programming. Here, I have written a very simple C program to evaluate the Taylor series expansion of exponential function e^x, but I am getting error in my output, though the program gets compiled successfully. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()
  {
  double sum;
  int x;
  printf("Enter the value of x: ");
  scanf("%d",&amp;x);
  sum=1+x+(x^2)/2+(x^3)/6+(x^4)/24+(x^5)/120+(x^6)/720;
  printf("The value of e^%d is %.3lf",x,sum);
  return 0;
  }
  </code></pre>