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
Your comment system doesn't like the syntax -- thinks it contains HTML tags, I guess. So I'll post on my own blog.
Here it is.
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 ;-)
I had the same thought as John. :-)
Post a comment
Recent comments
Ingo Martinz on Meeeeeeeeeeep at 22:32
Axel Koerv on Meeeeeeeeeeep at 21:57
Roland Dressler on Outlook to Notes converter: from PST to NSF at 11:50
Karl Heindel on Outlook to Notes converter: from PST to NSF at 10:30
Jerry Preissler on LibreOffice vs Apache OpenOffice at 13:47
Mariano Kamp on How to commit at 09:41
Bernd Vellguth on Outlook to Notes converter: from PST to NSF at 02:05
Thilo Hamberger on Outlook to Notes converter: from PST to NSF at 16:40
Jens Bruntt on Free PlayBook for your Android app submission at 11:47
Karl Heindel on Outlook to Notes converter: from PST to NSF at 20:26
Roland Dressler on Outlook to Notes converter: from PST to NSF at 15:12
Stephan H. Wissel on heise online: IBM plant Stellenabbau in Deutschland at 08:38
Jan Lauer on heise online: IBM plant Stellenabbau in Deutschland at 04:13
Juergen Heinrich on Balance at 03:29
Jörg Hermann on Girls On Longboards at 02:42
Stephan H. Wissel on heise online: IBM plant Stellenabbau in Deutschland at 23:21
Joerg Michael on heise online: IBM plant Stellenabbau in Deutschland at 21:01
Ben Poole on Outlook to Notes converter: from PST to NSF at 19:46
David Hablewitz on BlackBerry Business Cloud Services with Microsoft Office 365 at 16:44
Patrick Picard on RIM tries to be social. Falls flat on face. at 16:00
Volker Weber on Outlook to Notes converter: from PST to NSF at 10:29
Richard Hogan on Outlook to Notes converter: from PST to NSF at 10:26
Joachim Haydecker on Girls On Longboards at 08:26
Karl Heindel on Outlook to Notes converter: from PST to NSF at 07:50
Keith Brooks on Outlook to Notes converter: from PST to NSF at 04:21


