error: invalid operands to binary expression ('char *' and 'double')
printf ("Give me a postive number you want change for.\n");
scanf ("%f", &total_float);
roundf ("%f" * 100.0 = "%d", &total_float, &total_int);
printf ("%d"), &total_int;
I've reviewed my code to the below but I still can't figure out the invalid operand error that generated from line 3.
printf ("Give me a postive number you want change for.\n");
scanf ("%f", &total_float);
("%f" * 100.0 = "%f"), &total_float, &total_float;
total_int = roundf (total_float);
printf ("%d", total_int);
and if I try it this way I get the error that its nonassignable:
total_float * 100.0 = total_float;
Changed it to :
total_float = total_float * 100
and the code works now.
printf()
maybe?