about | help | code help+videos | done | prefs |
Define a recursive function that when passed two dates in the same year (assume non-leap year), returns the difference (in days) between the two. For example, there is a two-day difference between 13/04/2011 and 15/04/2011. You may not use any loops. You may create helper functions if needed. diff_dates1(25, 7, 17, 8) → 23 diff_dates1(31, 3, 1, 4) → 1 diff_dates1(30, 4, 1, 5) → 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: 4 Post-solution available
Copyright Nick Parlante 2017 - privacy