SSL gcd.cob Interaktion und Portierbarkeitunbekannt
*------------------------------------------ * berechne gcd von m und n * Andreas Spillner/HS-Bremen * Softwaretechnik Trends Band 44 Heft 4 *------------------------------------------ IdentificationDivision. Program-Id. GCD. Author. NN. DataDivision. Working-StorageSection. 77 r pic9(4). LinkageSection. 77 n pic9(4). 77 m pic9(4). 77 result pic9(4). ProcedureDivisionusing x, y, z returning result. * Beispiel mit Fehler! * * pre: m>0 and n>0 * post: return >0 and * m@pre.mod(return) = 0 and * ... if n>m then move m to r move n to m move r to n end-if movefunction mod(m,n) to r performuntil r not= 0withtestbefore move m to r move n to m move r to n end-perform move n to result * result wird zurückgegeben End-Program GCD.
Messung V0.5 in Prozent
[Verzeichnis aufwärts0.21unsichere VerbindungÜbersetzung europäischer Sprachen durch Browser2026-09-28]