#include<iostream>
using namespace std;
int main()
{
int a, b, c, x, y, z;
cout << "a="; cin >> a;
cout << "b="; cin >> b;
cout << "c="; cin >> c;
cout << "x="; cin >> x;
cout << "y="; cin >> y;
cout << "z="; cin >> z;
if((a!=x) && (a!=y) && (a!=z)) cout << a << " ";
if((b!=x) && (b!=y) && (b!=z)) cout << b << " ";
if((c!=x) && (c!=y) && (c!=z)) cout << c << " ";
return 0;
}
Mai exista si varianta cu vectori, daca vrei lasa un comentariu si o postez.