Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 542 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 542 Bytes

##Imagine a made-up language that: ####doesn't allow literal values

####treats all function arguments as immutable

####only has five functions: loop(x) {...} Loop(x) times and executes the between {} increment(x) Returns the value of x + 1 assign(x, y) Assign the value of y to x zero() Returns the number 0 return(x) Exit current scope and return x to the caller

##Implement the following functions:

add(x, y)
multiply(x,y)
decrement(x)
subtract(x,y)

###Extra Credit divide(x,y)