[ create a new paste ] login | about

Link: http://codepad.org/1Dm0rCbD    [ raw code | output | fork ]

Ruby, pasted on Jul 12:
1
2
3
4
5
4.times{|i|
    col = i+1
    row = i+1
    print "m1._1#{col} * m2._#{row}1 + "
}


Output:
1
m1._11 * m2._11 + m1._12 * m2._21 + m1._13 * m2._31 + m1._14 * m2._41 + 


Create a new paste based on this one


Comments: