Please help I don't know what I am doing wrong.
Code:
#include <iostream> #include <math.h> #include <conio.h> #include <string.h> #include <iomanip> using namespace std; double powerOf(double x, int n) { n++; return pow(x,n); } int main() { int n=0; double x=0; cout<<"Enter the value you want to know the first ten powers for: "; cin>>x; for (int i=10;i>0;i--) { powerOf(int n, double x); } getch(); return 0; }
Comment