GNU Home / GNU humor / Software /

Happy New Year in four languages

by Vadim Antonov
cat /*dev/null; echo "Happy New Year"\!
cat <<c*/ /*dev/null | cat> /dev/null
c */ () {} /*
c */ main() { cat(); printf("Happy New Year!\n"); } /*
17 format(' Happy New Year!')
 write (6,17)
 stop
 end
c This program runs in four languages with the same effect.
c The languages are C, Fortran, C Shell and Bourne Shell.
c Written by Vadim Antonov, avg@hq.demos.su
c*/

Plain text version


The joke on this page was obtained from the FSF's email archives of the GNU Project.