#include <cs50.h>
#include<math.h>
#include<stdio.h>
int main(void)
{
int n = 0;
do
{
n = (get_float("Change owed: ") * 100);
}
while (n < 0);
int q = ((n / 25) % 10);
int d = ((q / 10) % 10);
int r = ((d / 5) % 10);
int c = (n % 10);
int i = q + d + n + c;
printf("%i, i");
}
It then yields this:
printf("%i, i");
should beprintf("%i", i);