double s, c, t;
cout << "--------------------------------------------- " << endl;
cout << "| theta | sin | cos | tan | " << endl;
cout << "--------------------------------------------- " << endl;
for (double i = 0; i <= 3.14; i += 0.01)
{
s = sin(i);
c = cos(i);
t = tan(i);
cout << fixed;
cout << "| " << i << " | " << s << " | " << c << " | " << t << " | " << endl;
cout << "--------------------------------------------- " << endl;
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น