* Código antigo
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
main(){
setlocale(LC_ALL, "portuguese");
int n1[4], n2[4], ni[4], nd[4];
printf("1° pessoa\n");
for(int i=0; i<=4;i++){
printf("Digite o %d número: ", i+1);
scanf("%d", &n1[i]);
}
printf("2° pessoa\n");
for(int i=0; i<=4;i++){
printf("Digite o %d número: ", i+1);
scanf("%d", &n2[i]);
}
for(int i2=0; i2<=4; i2++){
for(int i=0; i<=4;i++)
if(n1[i]==n2[i2]){
ni[i]=n1[i];
}else if(!(n1[i]==n2[i2])){
nd[i]=n1[i];
}
}
printf("Números iguais: \n");
for(int i=0; i<=4;i++){
printf("%d\n", ni[i]);
}
for(int i=0; i<=4;i++){
printf("%d\n", nd[i]);
}
system("pause");
}
include
include
include
main(){ setlocale(LC_ALL,"Portuguese"); int n1 [5] = {0}, n2 [5] = {0}, ni [5] = {0}, nd [10] = {0}; / * Data entry * / printf ("1st person \ n"); for (int i = 0; i