I want to use arrays to program a calculator that uses set operatiors. Like:
A= 1,2,3,4 B=1,2,3,4,5
A union B = 1,2,3,4,5
I'm asking the user for the input, but after that I'm stuck. I guess that I can use a loop that goes through the array and checks for dublicates and removes them. And then I can just display the output. I have no idea how to do this. Can anybody help me?