Can you please look at my code and tell me if I am close or where to go to get help.
I get an error at the G in this line.
change= get_positive_float("Change owed: \n");
include
include
include
int main (void) { int i = 0; float change = 0; int counter = 0; int qr =25; int dm = 10; int nk = 5; int pn = 1; i = i *100;
// ask user for amount owed
do
{
change= get_positive_float("Change owed: \n");
printf("coin: \n");
}
// check against 25
while
(i >= qr)
;
{
i++;
i-= 25;
}
// check against 10
while
(i >= dm)
;
{
i++;
i -= 10;
}
// check against 5
while
(i >= nk)
;
{
i++;
i -= 5;
}
// check against 1
while
(i >= pn)
;
{
i++;
i-= 1;
}
printf("int: %i =\n", i);
}