main.cpp:8:2: error: expected unqualified-id before ‘if’
8 | if (x < 0)
| ^~
main.cpp:13:2: error: expected unqualified-id before ‘if’
13 | if (x > 360)
| ^~
main.cpp:15:2: error: ‘x’ does not name a type
15 | x *= PI/180.0;
| ^
main.cpp:17:16: error: ‘x’ was...
Patulong sana ako lodi kung ano po mali ko dito.
#include <iostream>
using namespace std;
int main()
{
const double PI = 3.1415926535897932384650288; //Pi accuracy double sin (double x) //Sine by Taylor's Series
}
double sign = 1;
if (x < 0)
{
sign = -1.0;
x = -x;
}
if (x > 360)
x =...