Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void wypisz(int n)
  5. {
  6. if (n == 0)return;
  7. wypisz(n - 1);
  8. for(int i=1; i!=n+1; ++i)
  9. printf("%d", i);
  10.  
  11. printf("%c", '\n');
  12. }
  13. int main(void)
  14. {
  15. wypisz(5);
  16. system("pause");
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement