Hello smart ones,
Please I want to perform this calculation and save it in a variable 'x'. like
X1. A
X2. A+H
X3. A+H+CH
X4. A+H+CH+C^2H
X5. A+H+CH+C^3H .....etc
to 15 times
and save it in variable x. I will use x to calculate this function y = (6 * pow(x,2) + 29*x + 14) / (32 - pow(x,5)). so that when I print 'y', I will get the values from X1 to X15
double i, x = a;
for (i = 0; i < b ; i++)
x = x + pow(c,i)* h
I Used this but I'm getting the value from X2 instead of from X1
Thank you. It's urgent, I am new to programming..