The Broken Clock Face

Developer(s): Dick Wagner
Date: 1994
Type: Program
Platform(s): TS 2068
Tags: Education

A puzzle by Marilyn vos Savant: a clock face broke into two halves whose six numbers add up to the same total. How was it split? The program lists the numbers 1 to 12, asks for six of them and adds them up; 39 is half of the clock face, and the program then gives both halves, 10, 11, 12, 1, 2, 3 and 4 to 9. Any other total gets TRY ANOTHER COMBINATIOn. Press RUN.

The program checks only the total, so any six numbers that add up to 39 are accepted.

Published in The Plotter August 1994 (The Broken Clock Face).

Image Gallery

Source Code

   1 REM
  10 PRINT "THE BROKEN CLOCK FACE"''
  20 REM BY DICK WAGNER, 7/94
 100 PRINT "Enter numbers from this list    that will add up to 1/2 of the  clock face."''
 110 FOR H=1 TO 12
 120 PRINT H
 125 NEXT H
 128 PRINT : PRINT "Input your choice of 6 numbers."
 130 INPUT A: INPUT B: INPUT C
 140 INPUT D: INPUT E: INPUT F
 200 LET T=A+B+C+D+E+F
 210 PRINT : PRINT "THE SUM IS ";T
 300 IF T<>39 THEN PRINT "TRY ANOTHER COMBINATIOn. Press  RUN"
 310 IF T=39 THEN PRINT "CORRECT, THIS IS 1/2 OF THE     CLOCK FACE"
 320 IF T=39 THEN PRINT "THE OTHER HALF OF THE NUMBERS IS 10,11,12,1,2,3, OR 4,5,6,7,8,9 "

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.