how to do power function in c++ code example
Example: pow function c++
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int x = 2;
int y = 3;
cout<<pow(x,y);
}
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int x = 2;
int y = 3;
cout<<pow(x,y);
}