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
Alex Boschmans
on Nice try at 13:35
Volker Weber
on From my inbox at 12:21
Stephan H. Wissel
on From my inbox at 12:00
Karsten Lehmann
on Nice try at 01:17
Oswald Prucker
on Nice try at 00:54
Jim Boling
on Nice try at 23:24
Albert Dandl
on Nice try at 20:12
Karsten Lehmann
on Nice try at 19:18
Riza Baltazar
on Color coordination for web sites at 19:10
Sean Cull
on From my inbox at 19:00
Armin Roth
on Nice try at 18:02
Bart Severein
on From my inbox at 16:52
Hubert Stettner
on Why is Nokia such a complete failure? at 14:59
Ralf Stellmacher
on Overheard in New York at 12:47
Chris Frei
on Holy moly at 09:03
Ben Poole
on Why is Nokia such a complete failure? at 08:50
Dirk Steins
on Holy moly at 08:11
simon carter
on Why is Nokia such a complete failure? at 08:06
Ingo Seifert
on Holy moly at 05:50
Moritz Schroeder
on Why is Nokia such a complete failure? at 04:22
Mika Heinonen
on Why is Nokia such a complete failure? at 02:26
Andy Mell
on Holy moly at 00:54
Volker Weber
on Why is Nokia such a complete failure? at 00:23
Oswald Prucker
on Holy moly at 00:02
Yves Luther
on Why is Nokia such a complete failure? at 23:33


