Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  ooh
Language: C/C++
Code:
     #include <iostream>
 
using namespace std;
 
double puk(double a, int n)
{
    double x = 1;
    for (int i = 0; i < n; i++)
        x *= a;
    return x;
}
 
int main()
{
    double a;
    int n;
    cin >> a >> n;
    cout << puk(a, n);
    return 0;
}
          
Comments: