here is the code quzah starte for me and I added the cout and cin but I'm unsure where to add the PowerInt(n) =(n!)/n^2 formula. I think I should be adding that somewhere because it states how to test the variable that is entered or am I completly wrong?
Code:#include <iostream> #include <stdlib.h> using namespace std; int main() float p(int i) { if( i < 10 && i > 1 ) { int x = i*i; y; float z cout << "enter a number" << endl; cin >> z; return z / (float)x; } return 1.0; }



LinkBack URL
About LinkBacks


