0

power

can i do something like a^b with both as integers new int a and new int b? and how

8th Aug 2016, 9:21 AM
Jefta Pruim
Jefta Pruim - avatar
2 ответов
0
#include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { int *a = new int; *a = 45; int *b = new int; *b = 2; int h = pow(*a,*b); cout << h << endl; delete a, b; return 0; }
8th Aug 2016, 10:08 AM
Jaque
Jaque - avatar
0
thnx
8th Aug 2016, 10:11 AM
Jefta Pruim
Jefta Pruim - avatar