123456789101112131415161718 |
-
-
-
- public class ShortCalculator {
-
- public Short[] shortValues(short num1, short num2){
-
- short sum = (short)(num1+num2);
- short difference = (short)(num1 - num2);
- short product = (short)(num1 * num2);
- short quotient = (short)(num1 / num2);
- short remainder = (short)(num1 % num2);
- Short[] x = {sum, difference, product, quotient, remainder};
- return x;
-
- }
- }
|