title: C++ program that creates sin cos and tangent values
body: <p>I am new to the C++ language and am trying to create a program that will output all the values for sin, cos, and tangent. The table is suppose to do values 0 to 360 in increments of 10 while using a for loop. I keep getting non stop errors within my for loop and was wondering if someone could show me what I was doing wrong. Any and all suggestions are appreciated.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  #include &lt;cmath&gt;
  
  using namespace std;
  
  int main()
  {
  double x, r;
  double sin(x), cos(x), tan(x);
  double PI = 3.1415926;
  
  for (x = 0:10:360)
   r= x * PI /180.0;
   cout &lt;&lt; "The sin of:" &lt;&lt; x &lt;&lt; "is:" &lt;&lt;sin(r) &lt;&lt; "\n" &lt;&lt; endl;
   cout &lt;&lt; "The cos of:" &lt;&lt; x &lt;&lt; "is:" &lt;&lt;cos(r) &lt;&lt; "\n" &lt;&lt; endl;
   cout &lt;&lt; "The tan of:" &lt;&lt; x &lt;&lt; "is:" &lt;&lt;sin(r)/cos(r) &lt;&lt; "\n" &lt;&lt; endl;
  
   return 0;
  
  
  
  }
  </code></pre>