Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SCRIPT pc
- function C = pc(A,B)
- a=length(A);
- b=length(B);
- k=1;
- for i=1:a
- for j=1:b
- C{1,k}=[A(1,i) B(1,j)];
- k=k+1;
- end
- end
- end
- N212
- A=input('Multimea A este: ');
- B=input('Multimea B este: ');
- C=pc(A,B);
- disp('Produsul cartezian este: ');
- celldisp(C);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement