Advertisement
deko96

[Лаб 6] Низа

Nov 28th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void izmini_rek(int a[], int n)
  4. {
  5.     if(--n >= 0) {
  6.         printf("%d ", a[n]);
  7.         izmini_rek(a,n);
  8.     }
  9.  
  10. }
  11. int main()
  12. {
  13.     int a[100], i, n;
  14.     scanf("%d", &n);
  15.     for(i = 0; i < n; i++) {
  16.         scanf("%d", &a[i]);
  17.     }
  18.     izmini_rek(a,n);
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement