C program to perform the Set operations (Union and Intersection)
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to perform the Set operations ——————————————————————————————————————————— How many elements for Set-1 4 Enter elements -10 20 -55 23 How many elements for Set-2 5 Enter elements 55 -55 200 20 1225 S1 U S2 = S3 = { -10 20 -55 23 55 200 1225 } S1 ^ S2 = S3 = { 20 -55 } ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
C program for the Tower of Hanoi
C program to find the factorial of a given number
C program to find the factorial of a given number using recursion
Advertisement