Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Commit

Permalink
Added sqaring method
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmccullough committed May 7, 2011
1 parent 755fd57 commit 32c2737
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Main.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ println "Hello ${name}"

int programmingPoints = 10
println "${name} has at least ${programmingPoints} programming points."

println "${programmingPoints} squared is ${square(programmingPoints)}"

int square(int base) {
base * base
}

0 comments on commit 32c2737

Please sign in to comment.