Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<iostream>
- int main()
- {
- int p[10],s[10],t[20],i,x,z;
- printf("Digite os Numeros do Primeiro Vetor\n");
- for (i=1;i<=10;i++)
- {scanf("%d",&p);}
- printf("\n\n");
- printf("Digite os Numeros do Segundo Vetor:\n");
- for (x=1;x<=10;x++){scanf("%d",&s);}
- for (z=1;z<=10;z++)
- {
- for(i=1;i<=10;i++)
- {
- t[z]==p;scanf("%d",&s);
- }}
- for (z=10;z<=20;z++)
- {
- for(x=1;x<=10;x++)
- {
- t[z]==s[x];scanf("%d",&s[x]);
- }}
- printf("vetor completo com vinte elementos\n");
- for (z=1;z<=20;z++)
- {
- printf("%d\n",t[z]);
- getchar();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement