identificationdivision. program-id. pebbles. author. "Reisig/ PN Newsletter 10-05 p. 3". * ursprünglich von E. W. Diijkstra date-written. 22.11.2005. date-compiled. datadivision. working-storagesection. 77 b pic9(4). 77 w pic9(4). linkagesection. 77 BB pic9(4). 77 WW pic9(4). proceduredivisionusing BB WW. * computes solutions for the pebble game move BB to b move WW to w performuntilfalse if w>=1and b>=1 subtract1from b elseif b>=2then subtract1from b elseif w>=2then subtract2from w add1to b end-ifend-ifend-if end-perform. display"b="b" w="w. end-program pebbles.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.