about | help | code help+videos | done | prefs |
Complete the berlinWall2 function, so that given a year, month, and day as parameters, the function returns how many years it will have been since the fall of the berlin wall - the year increments on each anniversary day. If the date given is before the wall fell, return -1 (NOTE: The Berlin Wall fell November 9, 1989). berlinWall2(2001, 12, 31) → 12 berlinWall2(2001, 1, 1) → 11 berlinWall2(1988, 12, 31) → -1 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy