#include<stdio.h>
void main()
{
int i;
float x=0.8;
for(i=0; i<100; i++)
x=x*(1-x)*5;
printf("%f \n",x);
}
According to me, it looks quite simple with answer 0.80000000 but the real answer is something else. Its getting run time error with the output value "-inf". Why?