I'm testing the very first requirement of the Greedy assignment (ensure the input is not negative). I'm running into an issue where if I use < 0 in the while statement, -0.1, -0.2, -0.3 etc. is accepted. If I use <= any positive 0. values input e.g. 0.1, 0.2, 0.3 etc. are rejected. I've tried a number of things including using 0.00.
#include <stdio.h>
#include <cs50.h>
int main(void)
{
int changeOwed;
do
{
printf ("How much change is owed?\n");
changeOwed = get_float();
}
while (changeOwed <= 0.00);
}