Compare commits

...

1 Commits
master ... a1

Author SHA1 Message Date
闫佳诚 11620acf78 e.cpp
6 years ago

16
e.cpp

@ -0,0 +1,16 @@
#include <iostream>
using namespace std;
double power(double x, int n)
{
double val = 1.0;
while (n--) val *= x;
return val;
}
int main() {
double x;
int y;
cin >> x;
cin >> y;
cout<<power(x,y);
}
Loading…
Cancel
Save