• Hey Guest. Check out your NeoGAF Wrapped 2025 results here!

Name that program.

Status
Not open for further replies.

Hitokage

Setec Astronomer
I'm at home sick, so let me share the pain. What does this program do?

Code:
int main ()
{
   double highb, lowb = 1.0;
   long int k = 1;
   do {
      lowb = lowb - (1/((2 * (double) k) + 1));
      k++;
      highb = lowb + (1/((2 * (double) k) + 1));
      k++;
      printf("%ld  %1.30f\n",k, SPOILER);
      lowb = highb;
   } while (1);
   return 0;
}
 
Status
Not open for further replies.
Top Bottom