The following code returns 99 as an output.
#include<iostream>
#include <math.h>
using namespace std;
int Solve(int a)
{
return (pow(a,2));
}
int main()
{
int a=10;
cout<<Solve(a)<<endl;
return 0;
}
I have no idea why this happens and, what is more, it does it with 5 and 25 as well, so it has something to do with multiples of 5.
P.S. is the pc broken or what :D