import java.lancs.*; public class Ex6n2 { public static void main (String[] args) throws Exception { System.out.println (); BasicIo.prompt ("type amount in pence: "); int pence = BasicIo.readInteger (); int pounds = pence / 100; pence = pence % 100; int half_pounds = pence / 50; pence = pence % 50; int dimes = pence / 10; pence = pence % 10; System.out.print ("The breakdown is: " + pounds + " pound coins, " + half_pounds + " 50p coins, " + dimes + " 10p coins, " + pence + " 1p coins "); System.out.println (); } // end of main method } // end of class