Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void display(int n){
- printf(" %d ",n);
- if(n==0){
- // n=3;
- printf("\n");
- return;
- }
- display(n-1);
- display(n-1);
- }
- int main(int argc, char **argv)
- {
- display(3);
- return 0;
- }
Add Comment
Please, Sign In to add comment