||prints a table of powers 2 to 5 of the numbers 1 to 50
||to see the table, say
||	output

output = title ++ captions ++ concat (map line [1..50])

title = cjustify 60 "A TABLE OF POWERS" ++ "\n"

captions = format "N" ++ concat (map caption [2..5]) ++ "\n"

caption i = format ("N^" ++ shownum i)

format = ljustify 12

line n = concat [format (show(n^i)) | i<-[1..5]] ++ "\n"
