Percent errors using the arc cosine function trying to output 3 different numbers of percentages <p>I coded all of this but it will not output any of my percent errors i'm not quite sure where to put the percent? It is suppose to output 3 different numbers but I can't even get to the output because of this error i have no idea i tried changing everything to floats and and ints but the error message of % is overloading the function?</p> <pre><code>double dRandom() { return double(rand()/RAND_MAX); } int main() { int loop_count=100, count=0; int result=0; float x=dRandom(); double y=dRandom(); float arccos (float x); float function=0; srand(time(NULL)); for(int i=1; i&lt;4;++i) { for (int k=1; k&lt;= loop_count; ++k) { function= (x* arccos(x)-sqrt(1- pow(x,2)))%RAND_MAX;//this line is where i'm not sure how to add the percent sign in correctly } } if(x&lt;y) cout&lt;&lt;result; return 0; } </code></pre>