#include #include const int OLD_PENCE_PER_SHILLING = 12; const int OLD_PENCE_PER_POUND = 240; const int NEW_PENCE_PER_POUND = 100; int main(void) { int pounds, shillings, oldpence, newpence; pounds = 4; shillings = 7; oldpence = 8; oldpence = oldpence + shillings * OLD_PENCE_PER_SHILLING; newpence = ( oldpence * NEW_PENCE_PER_POUND ) / OLD_PENCE_PER_POUND; printf("%d %d/%d in old money ", pounds, shillings, oldpence); printf("is %d.%d in new money.\n", pounds, newpence); return EXIT_SUCCESS; }