Programming challenge

by Volker Weber

Who can do this in COBOL?

Comments

rem "there's probably an easier way";
x:=4:1:2:6:2:1:3:1:3:1:6:1:1:1:2:3:1:1:1:3:1:1:2:3:3:2:1:1:1:2:1:4:1:2:4:1:5:1:1:1:1:1:1:2:1:2:3:1:1:1:1:2:3:2:1:1:1:1:1:2:1:1:3:1:3:2:6;
t:="0":"1";
b:="0000":"0001":"0010":"0011":"0100":"0101":"0110":"0111":"1000":"1001":"1010":"1011":"1100":"1101":"1110":"1111";
h:="0":"1":"2":"3":"4":"5":"6":"7":"8":"9":"A":"B":"C":"D":"E":"F";
@For(i:=1;i

Richard Schwartz, 2007-05-05

Your comment system doesn't like the syntax -- thinks it contains HTML tags, I guess. So I'll post on my own blog.

Richard Schwartz, 2007-05-05

Here it is.

Richard Schwartz, 2007-05-05

I was going to say, that doesn't look anything like the COBOL I used to write back in the 70's and 80's. But having looked at Richard's blog, it's obvious that COBOL has not moved on as much as I feared ;-)

John Keys, 2007-05-05

I had the same thought as John. :-)

Helmar Steinberg, 2007-05-05

Recent comments

Matthias König on Scriptable Widget :: Klopapier-Bestand abfragen at 11:22
Ingo Seifert on Bruce Springsteen :: Letter to you at 10:23
Nick Daisley on vivo X51 5G :: Erste Eindrücke at 09:30
Bernd Hofmann on The Queen's Gambit at 23:15
Andreas Imnitzer on The Queen's Gambit at 23:09
Julius Rummich on The Queen's Gambit at 20:42
Stefan Beermann on Visualisierung der Corona-Fallzahlen at 13:43
Thomas Lang on Visualisierung der Corona-Fallzahlen at 11:52
Thomas Kahmann on Wie gut funktioniert ANC bei den Jabra Elite 75t? at 11:12
Volker Weber on Visualisierung der Corona-Fallzahlen at 10:51
Lukas Gerlich on Visualisierung der Corona-Fallzahlen at 10:48
Oliver Regelmann on Wie gut funktioniert ANC bei den Jabra Elite 75t? at 08:42
Jan Wender on Wie gut funktioniert ANC bei den Jabra Elite 75t? at 20:33
Claudius Eßer on Jabra Elite 85t :: Erste Eindrücke at 20:05
Volker Weber on Jabra Elite 85t :: Erste Eindrücke at 19:47
Claudius Eßer on Jabra Elite 85t :: Erste Eindrücke at 19:41
Jochen Kattoll on iPhone 12 Pro :: Völlig neu und doch vertraut at 19:27
Volker Weber on iPhone 12 Pro :: Völlig neu und doch vertraut at 19:24
Volker Weber on Jabra Elite 85t :: Erste Eindrücke at 18:13
Claudius Eßer on Jabra Elite 85t :: Erste Eindrücke at 18:11
Volker Weber on iPhone 12 Pro :: Völlig neu und doch vertraut at 15:38
Jochen Kattoll on iPhone 12 Pro :: Völlig neu und doch vertraut at 15:32
Friedrich Holstein on Wie gut funktioniert ANC bei den Jabra Elite 75t? at 09:36
Oliver Simon on iPhone 12 Pro :: Völlig neu und doch vertraut at 21:34
Michael Jäckel on Wie gut funktioniert ANC bei den Jabra Elite 75t? at 20:52

Ceci n'est pas un blog

I explain difficult concepts in simple ways. For free, and for money. Clue procurement and bullshit detection.

vowe

Contact
Publications
Stuff that works
Amazon Wish List
Frequently Asked Questions

rss feed  twitter  amazon

Local time is 13:11

visitors.gif

Paypal vowe