range1 = [ 0, 2, 4, 6, 8 ]; main = print [a * b | a <- range1, b <- [0..a]]
Standard input is empty
[0,0,2,4,0,4,8,12,16,0,6,12,18,24,30,36,0,8,16,24,32,40,48,56,64]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!