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

int main(void) {
	for (float f = 0.0; f != 1.0; f += 0.1) {
		printf("%f\n", f);
		/* uncomment to show why output is not what you might think */
		/* printf("%.10f\n", f); */
	}
	return 0;
}