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