Hello,
I have a little problem with powers. Here's my code:
"int limit2=0;
for(int i=0;i<6;i++){
limit2+=pow(10,i);
}
cout<<limit2;"
The outcome should be 111111, but for some reason it is 111109. Sometimes (when the power is big) while raising a positive number by power it gives negative result. What's the problem?