#include <stdio.h>
#include <stdlib.h>

const OLD_PENCE_PER_SHILLING = 12;
const OLD_PENCE_PER_POUND = 240;
const 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 / OLD_PENCE_PER_POUND ) * NEW_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;
}
