Wednesday, January 11, 2012

Why doesn't my simple code work in C?

The problem is that your scanf statement is reading a float (%f), but you are putting it into an variable defined as an int.

No comments:

Post a Comment