123456789101112131415161718192021222324252627282930313233343536373839 |
-
-
-
- public class ShortCalculator {
-
- public short sum(short num1, short num2){
-
- return (short)(num1 + num2);
-
- }
-
- public short diff(short num1,short num2){
-
- return (short)(num1 - num2);
-
- }
-
- public short prod(short num1, short num2){
-
- return (short)(num1 * num2);
-
- }
-
- public short quot(short num1, short num2){
-
- return (short)(num1 / num2);
-
- }
-
- public short remain(short num1, short num2){
-
- return (short)(num1 % num2);
-
- }
-
-
-
- }
|