range1 = [ 0, 2, 4, 6, 8 ];range2 = [ 1, 3, 5, 7, 9 ]; main = print [a * b | a <- range1, b <- range2]
Standard input is empty
[0,0,0,0,0,2,6,10,14,18,4,12,20,28,36,6,18,30,42,54,8,24,40,56,72]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!