Basic C++, Please help.
I'm trying to repeat a formula depending on the inputted value from a data file. For example in the file I have: 1 6 100 I have this to solve for the first for (i=0; i<data; i++) { eunum = eunum++; euall2 = (pow(eunum,2)); // cout << euall2 << endl; euall3 = 1/euall2; // cout << euall3 << endl; euall4 = 6 * euall3; // cout << euall4 << endl; euall = sqrt(euall4); }
What is your question? It's not clear what you need.
Join our real-time social learning platform and learn together with your friends!