Ticker

6/recent/ticker-posts

Header Ads Widget

Responsive Advertisement

Cartesian product of Two set | with Simple code

Cartesian product definition
The Cartesian product X×Y between two sets X and Y is the set of all possible ordered pairs with first element from X and second element from Y:
X×Y={(x,y):x∈X and y∈Y}. Example:- There are A and B are two sets- A = {1,2}; B = {3,4}
Cartesian product (A × B) = {1,2} × {3,4} = {(1,3), (1,4), (2,3), (2,4)}




When the above program is executed, it produces following results --<\b>



Post a Comment

0 Comments