if (maxNum<=360 && minNum>=0)
{
cout << "\n\tDegree\t\tSine\t\t\tCosine\n";
cout << "\t-----------------------------------------------" << endl;
for (a=minNum; a<=maxNum; a=a+intv)
{
sine = sin (a * pi/b);
cosine = cos (a * pi/b);
cout.precision(2);
printf ("\t%d\t\t%6.4f\t\t\t%6.4f\n", a, sine, cosine);
}
}
It's only a warning. It's there because conversion from float to int rounds down. float 1.5 will become 1. This isn't always a bad thing. Though I don't see where in your code you're doing that. Unless you declared sine and cosine as integers..