Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- #define MAX 100
- int main()
- {
- int tab1[MAX], tab2[MAX], i, n;
- printf("Podaj ilosc liczb (max 100)\n");
- scanf("%d", &n);
- for(i=0; i<n; i++){
- printf("Podaj %d wyraz ciagu\n", i+1);
- scanf("%d", &tab1[i]);
- }
- for(i=0; i<n; i++){
- tab2[i]=tab1[i];
- }
- printf("Elementy 2. tablicy :\n");
- for(i=n-1; i>=0; i--) printf("%d ", tab2[i]);
- printf("\n");
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement