Răspuns:
#include <iostream>
using namespace std;
int main()
{
int x,y,z,a,b, exista=0;;
cin >> a >> b;
for (x=a; x<b; x++)
{
for (y=x+1; y<b; y++)
{
for (z=y+1; z<=b; z++)
{
if ((x+y+z) %10==0)
{
cout << "(<"<< x << "," << y << "," << z << ") ";
exista=1;
}
}
}
}
if (exista==0) cout << "nu exista";
return 0;
}
Explicație: