MCPcopy Create free account
hub / github.com/Berkeley-CS61B/skeleton-sp23 / main

Method main

lab01/src/Arithmetic.java:26–34  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

productMethod · 0.95
sumMethod · 0.95

Tested by

no test coverage detected