If I type 0.01 or 0.02 the the program just exits immediately. What do I do?
#include char line[100]; float amount; int main() { printf(\"E
Declare your comparative value as a float.
if (amount == 0.01f) printf("Quarters: 0\nDimes: 0\nNickels: 0\nPennies: 1");
Note that you could encounter some undefined behavior by directly testing float equality if you made some calculations with your float variable.