Original date:2015-06-21 18:03:09 Edited by: petelomax Subject: Re: Tight programming exercise, using bad programming practices

And yet there is also this, which loses points for having no real trickery of any note at all blink

procedure tiny(sequence s)  
integer l=length(s),n 
for i=1 to l do n=0 for j=i to l do n=n*10+s[j]-'0' 
if remainder(n,3)=0 then printf(1,"%d, ",n) end if 
end for end for  
end procedure  


Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu