0
How to do a^16 in c++
10 Respuestas
+ 3
~ swim ~ ah, I didn't knew that.
Thank you for telling me. :)
+ 1
~ swim ~ it works with pow(a,16)
+ 1
#include <iostream>
#include <cmath>
using namespace std;
int power(int a, int b)
{
int p = 1, i = 1;
while (i <= b) {
p = p * a;
i++;
}
return p;
}
int main()
{
// you can use the default pow() function instead of power()
return 0;
}
0
It works but at pbinfo it gives me only 30 points from 100
0
🍇 Alex Tusinean 💜 It works but at pbinfo it gives me only 30 points from 100
0
a**16
0
(a*a)*16