#include<iostream>
using namespace std;
int main()
{
double x = 0.625, E = 0.0001;
double value[2] = { 1 / x, 0 };
for (int count = 0; ; count++)
{
value[1] = ((3 / 2) * value[0]) - ((1 / 2) * x * pow(value[0], 3));
cout << value[1] << value[0];
value[0] = value[1];
}
}
Why doesn't value[1] change its number, if there is the instruction that does some calculations?(the eighth line)