File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
import static Square.square
2
2
import static Division.divide
3
+ import static Subtract.subtract
3
4
import static Sum.sum
4
5
5
6
def name = " Matthew"
@@ -9,4 +10,5 @@ println "Hello ${name}"
9
10
println " ${ name} has at least ${ programmingPoints} programming points."
10
11
println " ${ programmingPoints} squared is ${ square(programmingPoints)} "
11
12
println " ${ programmingPoints} divided by 2 bonus points is ${ divide(programmingPoints, 2)} "
13
+ println " ${ programmingPoints} minus 7 bonus points is ${ subtract(programmingPoints, 7)} "
12
14
println " ${ programmingPoints} plus 3 bonus points is ${ sum(programmingPoints, 3)} "
Original file line number Diff line number Diff line change
1
+ static int subtract (int val1 , val2 ) {
2
+ val1 - val2
3
+ }
You can’t perform that action at this time.
0 commit comments