I have two values p=19, q=14. I want to calculate pq using the power function pow(p, q)
.
Here is my code:
long long p=19,q=14;
cout<<pow(p,q);
The correct answer is: 799006685782884121 but my code gives me 799006685782884096 which is incorrect.
I have also tried doing these calculations using unsigned long long
instead of long long
, but this didn't help.