Jump to content

Code Golf: Code Golf: Difference between revisions

m
C of L syntax requires Ada 12
m (Qualify "all compilers")
m (C of L syntax requires Ada 12)
Line 25:
with Ada.Text_IO;procedure C is L:array(1 .. 9)of Integer:=(67,111,100,101,32,71,111,108,102);begin for C of L loop Ada.Text_IO.Put(Character'Val(C));end loop;end;
</syntaxhighlight>
163 characters; this should be portable to all Ada-12 compilers recent enough to include Ada.Command_Line, and all platforms
 
If we presume Linux, GNAT, and an executable name of "Code Golf", this can be shortened to (all one line):
31

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.