/*
 * "Floating point is strange" example 1.
 */
#include <stdio.h>

int main(void) {
	for (float f = 0.0; f != 1.0; f += 0.1) {
		printf("%g\n", f);
		/* uncomment for more about why loop behaves as it does
		printf("%.10f\n", f);
		*/
	}
	return 0;
}