OneCompiler

Write a program for multiplication of two matrices(Validate number of rows and columns before multiplication and give appropriate message)

107

object Demo6
{
def main(args:Array[String])
{
var row = Array(1,2,3,4)
var col = Array(3,4,5,6)
for(i<-row)
{
for(j<-col)
{
print(i*j+" ")
}
println()
}
}
}