Multiple Analog Inputs Connected to an Oscillator

Yes just wire the inputs together. But the real point is why you think you need to do this in the first place? I can see no point in it.
As to code it is

value =analogRead(pin);