Skip to content

Instantly share code, notes, and snippets.

@Blackburn29
Created May 13, 2015 21:00
Show Gist options
  • Save Blackburn29/3e91fafabc92b197db5b to your computer and use it in GitHub Desktop.
Save Blackburn29/3e91fafabc92b197db5b to your computer and use it in GitHub Desktop.
#include<stdio.h>
void datRecursionDoe(int num, int count) {
if(num > 9) {
return;
}
printf("%d", num);
if(num == count){
printf("\n");
datRecursionDoe(num + 1, 1);
} else {
datRecursionDoe(num, count + 1);
}
}
main()
{
datRecursionDoe(1, 1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment