Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<iostream>
  3.  
  4. int main()
  5. {
  6. int p[10],s[10],t[20],i,x,z;
  7.  
  8.  
  9. printf("Digite os Numeros do Primeiro Vetor\n");
  10.  
  11. for (i=1;i<=10;i++)
  12. {scanf("%d",&p);}
  13.  
  14. printf("\n\n");
  15. printf("Digite os Numeros do Segundo Vetor:\n");
  16. for (x=1;x<=10;x++){scanf("%d",&s);}
  17.  
  18. for (z=1;z<=10;z++)
  19. {
  20. for(i=1;i<=10;i++)
  21. {
  22. t[z]==p;scanf("%d",&s);
  23. }}
  24.  
  25. for (z=10;z<=20;z++)
  26. {
  27. for(x=1;x<=10;x++)
  28. {
  29. t[z]==s[x];scanf("%d",&s[x]);
  30. }}
  31. printf("vetor completo com vinte elementos\n");
  32.  
  33. for (z=1;z<=20;z++)
  34. {
  35. printf("%d\n",t[z]);
  36.  
  37. getchar();
  38. }
  39. return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement