I need help organizing my program. In other words it need to be in a list. Example:
Degree Sin cos tan
when it compiles the output is together:
DegreeSincostan0.000.3045
...you get the idea.
I need it to be organized. Where would i need to but a character for it to list Sine cosine and tangent numbers in order from 0- 360 degrees.
#include<iostream.h>
#include<math.h>
void main()
{
double radius, degree;
cout << "Degrees" << "sin" << "cos" << "tan";
radius = 0;
degree = 0;
while (radius <= 2 * M_PI )
{
cout << degree;
cout << sin(radius) << cos(radius) << tan(radius);
radius += M_PI / 18;
degree += 10;
}//close while
}//end main
<< moderator edit: added [code][/code] tags >>