Sha256: 4fe2cce95ac3e5bf656e5f5c701c0f4d2ab864184fbdc2df159073c517f5854c
Contents?: true
Size: 442 Bytes
Versions: 10
Compression:
Stored size: 442 Bytes
Contents
Oxford Oberon-2 MODULE Arithmetic; IMPORT In, Out; VAR x,y:INTEGER; BEGIN Out.String("Give two numbers: ");In.Int(x);In.Int(y); Out.String("x + y >");Out.Int(x + y,6);Out.Ln; Out.String("x - y >");Out.Int(x - y,6);Out.Ln; Out.String("x * y >");Out.Int(x * y,6);Out.Ln; Out.String("x / y >");Out.Int(x DIV y,6);Out.Ln; Out.String("x MOD y >");Out.Int(x MOD y,6);Out.Ln; END Arithmetic.
Version data entries
10 entries across 7 versions & 1 rubygems