hm
#11
Kabanaw Wrote:I love Java.


public class Speciaal
{

public static void main(String[] args)
{
for(int x=0; x<10; x++)
{
for(int i=0; i<10; i++)
{
for(int k=0; k<10; k++)
{
for(int l=0; l<10; l++)
{
System.out.print("&#"+x+i+k+l+"; ");
}
}
System.out.println(" ");
}
}
}

}
(another reason to use (the better and (way) more (if not extremely) convenient programming language) lisp (which stands for (if I recall correctly) list processing) jajajaj.)
Code:
(with-open-file ("out.txt" out :direction :output)
    (dotimes (i 10000)
        (format out "&#~4,'0d; " i)
        (if (zerop (mod i 10))
            (format out "~%"))))
Reply


Messages In This Thread
hm - by Kabanaw - 2009-08-07, 11:42 AM
hm - by Mark - 2009-08-07, 11:44 AM
hm - by kingdj333 - 2009-08-07, 11:49 AM
hm - by Razzberry - 2009-08-07, 11:54 AM
hm - by Katie - 2009-08-07, 12:14 PM
hm - by Kabanaw - 2009-08-07, 04:44 PM
hm - by Dusk - 2009-08-07, 04:47 PM
hm - by Kabanaw - 2009-08-07, 04:48 PM
hm - by Christopher - 2009-08-07, 06:46 PM
hm - by Combattente - 2009-08-07, 06:49 PM
hm - by Nikkey - 2009-08-07, 07:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)