Overloading and any number of arguments
<p>Write a new function called superOperator() that can take any number of arguments (up to 3). First, it multiplies all the arguments and stores the result in a variable (result1), then it adds up all the arguments and stores the result in another variable (result2). Finally it returns the difference between result1 and result2 (result1 – result2). If you use overloading, you will end up with three functions with the same name.
Examples:
superOperator(5) returns 0
superOperator(2, 5) returns 3
superOperator(4, 3, 7) returns 70</p>

<p>How do I make a flexible function that will take up to three and as little as 1 parameter and do the assigned tasks? I assume, by the question, that they are all int type but may be need to be read because of "can take any number of arguments.</p>
