A=input('type matrix A');
B=input('type matrix B');

Asize=size(A);
Bsize=size(B);

if Asize(2)==Bsize(1)
    A*B
else
    disp('den mporw na kanw ton pollaplasiasmo')
end


A=[2,4;-2,-4;3,6]
B=[10,8,-1,2,-9;-5,-4,0.5,-1,4.5]
A*B