Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int vetor1 [3] = {1,2,3};
- int i, x, j, vetor2 [3] = {};
- printf("\nDigite mais 3 valores \n");
- for(j=0;j<3;j++)
- {
- scanf("%i", &vetor2[j]);
- }
- printf("_________________________________________________");
- for(i=0; i<3; i++) {
- if(vetor1[i]==vetor2[i]) {
- printf("valores são iguais:");
- }
- else{
- printf("\n nada se repete \n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement