/* A program to convert cents to dollars and cents. */ #include main () { int dollars, cents; cents = 12705; dollars = cents / 100; cents = cents % 100; printf("$%d.%2.2d\n", dollars, cents); }