You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
343 B

/**
* :author: Dan Buch (daniel.buch@gmail.com)
*/
#include <stdio.h>
int main()
{
float f = 0.0f;
int i;
for (i = 0; i < 10; i++) {
f = f + 0.1f;
}
if (f == 1.0f) {
printf("f is 1.0 \n");
} else {
printf("f is NOT 1.0\n");
}
return 0;
}
/* vim:filetype=c:fileencoding=utf-8
*/