C program to Find Cartesian Product of Two Sets | C programming
C program to find the Cartesian Product of two sets Cartesian product is a mathematical operation that returns a set (or product set or simply product ) from multiple sets. That is, for sets A and B , the Cartesian product A × B is the set of all ordered pairs ( a , b ) where a ∈ A and b ∈ B . Products can be specified using set-builder notation, e.g. {\displaystyle A\times B=\{\,(a,b)\mid a\in A\ {\mbox{ and }}\ b\in B\,\}.}