(String[] args)
| 24 | } |
| 25 | |
| 26 | public static void main(String[] args) { |
| 27 | System.out.println("Give me a number! (no decimals, please)"); |
| 28 | int num1 = StdIn.readInt(); |
| 29 | System.out.println("Give me another number! (still no decimals)"); |
| 30 | int num2 = StdIn.readInt(); |
| 31 | |
| 32 | System.out.println("The product of " + num1 + " and " + num2 + " is: " + product(num1, num2)); |
| 33 | System.out.println("The sum of " + num1 + " and " + num2 + " is: " + sum(num1, num2)); |
| 34 | } |
| 35 | } |