Another Silly programming puzzle....

Ricardo A. Baeza-Yates rabaeza at watdragon.waterloo.edu
Tue Apr 4 04:47:24 AEST 1989


In article <1210 at microsoft.UUCP> t-iaind at microsoft.UUCP (Iain Davidson) writes:
>(This is my first BIG post, so if you want to flame, flame low and send away)
>
>   For those still silly over the LAST puzzle/challange.... here's another one.

#include <stdio.h>
#include <ctype.h>

main()
{
int c;

for( ;(c=getchar())!=EOF; putchar(c))
	if( isalpha(c) ) c = (lower(c)>'m') : c-13 ? c+13);
}


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rabaeza at watmum.waterloo.{edu,cdn}  519-885-1211 x3497  Ricardo Baeza-Yates
rabaeza at watmum.uwaterloo.ca                            CS Dept., U. Waterloo 
uunet!watmath!watmum!rabaeza                           Waterloo, Ont. N2L3G1



More information about the Comp.lang.c mailing list