Skip to content

Instantly share code, notes, and snippets.

View aSipiere's full-sized avatar
💅
flexin'

Alex aSipiere

💅
flexin'
  • Bristol
View GitHub Profile
@aSipiere
aSipiere / recfun.scala
Created February 4, 2018 22:52
recursive functions
package recfun
import scala.collection.mutable.ListBuffer
object Main {
def main(args: Array[String]) {
println("Pascal's Triangle")
for (row <- 0 to 10) {
for (col <- 0 to row)
print(pascal(col, row) + " ")