Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following code was run on 32-bit GNU Linux using the GCC version 3.4.6 compiler. On this platform, FLT_MAX has the value 340282346638528859811704183484516925440.000000. FLT_MIN=-FLT_MAX.

Code Block
#include <stdio.h>

int main(int argc, char *argv[])
{

  float val, currentBalance=0;
 
  scanf("%f", &val); 

  currentBalance+=val;
  
  printf("%f\n", currentBalance);

  return 0;
}

...