Advertisement
Josif_tepe

Untitled

Dec 10th, 2022
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. void rekurzija(int x) {
  5.     if(x < 1) {
  6.         return;
  7.     }
  8.     printf("%d ", x);
  9.     rekurzija(x - 1);
  10. }
  11. int main() {
  12.     rekurzija(10);
  13.     return 0;
  14. }
  15. /*
  16.  
  17.  
  18.  */
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement