Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int n,i,*x;
- int main()
- {
- printf("Podaj Ilosc elementow tablicy ktore chcesz: ");
- scanf("%d",&n);
- x = (int*) malloc (n * sizeof(int));
- for(i=0;i<n;i++)
- {
- printf("%d element tablicy to : ",i+1);
- scanf("%d",&x[i]);
- }
- for(i=0;i<n;i++)
- printf("\n%d element tablicy to: %d",i+1,x[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement