![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
recursive counting in c++
main.cpp
- Committer:
- mturner5
- Date:
- 2016-11-07
- Revision:
- 0:a9ed7cd43153
File content as of revision 0:a9ed7cd43153:
#include "mbed.h" void backward_count(n, delta, min_num) { cout << n; if(n <= min_num) { return 0; } else { return backward_count(n-delta, delta, min_num); } } int main() { number = 25; increment = 2; min_number = -5; backward_count(number,increment, min_number); } main()