Skip to content

Instantly share code, notes, and snippets.

@nikos-glikis
Created April 3, 2016 15:10
Show Gist options
  • Save nikos-glikis/0ce522e98cb2cee4811d11fe1e4c6f83 to your computer and use it in GitHub Desktop.
Save nikos-glikis/0ce522e98cb2cee4811d11fe1e4c6f83 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int main()
{
//Why is this happening ?????????
float x = 0.1;
while (x!=1.1)
{
printf("x = %f\n", x);
x = x + 0.1;
getchar();
}
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment