1234567891011121314151617181920212223 |
-
-
-
- public class ShortCalculator {
-
- public short sum(short a, short b){
- return (short)(a + b);
- }
- public short difference(short a, short b){
- return (short)(a - b);
- }
- public short product(short a, short b){
- return (short)(a * b);
- }
- public short quotient(short a, short b){
- return (short)(a / b);
- }
- public short remainder(short a, short b){
- return (short)(a % b);
- }
-
- }
|