So I'm just trying to slowly navigate my way through this problem by seeing if I can get the total amount to subtract 25 from the float. I keep getting an error message that says
cash3.c:18:27: error: relational comparison result unused [-Werror,-Wunused-comparison] for (int coins = 0; i < 0.25, coins++)
Here is my coding so far:
int main(void)
{float n;
do
{
n = get_float("number\n");
}
while (n <= 1);
int i = round(n * 100 );
for (int coins = 0; i < 0.25, coins++)
{
printf("I have %i coins \n", coins);
}
}
Any hints from anyone out there as to why this isn't working as I want it to? I feel like I've got everything in the right spot. Thanks!