Răspuns :
Explicație:
#include <iostream>
using namespace std;
int main()
{
unsigned int a,b;
cout<<"a este ";
cin>>a;
do
{
cout<<"b este ";
cin>>b;
} while(b<a);
int c,k1,k2;
int i,j;
int nr;
int suma;
suma=0;
cout<<"numerele echilibrate aflate intre "<<a<<" si "<<b<<" sunt ";
for(i=a;i<=b;i++)
{
j=i;
k1=0;
k2=0;
while(j!=0)
{
c=j%10;
if(c%2==0)
k1++;
else
k2++;
j=j/10;
}
nr=k1+k2;
if(k1==k2 && nr%2==0)
{
cout<<i<<" ";
suma=suma+i;
}
}
cout<<endl<<"suma numerelor echilibrate aflate intre "<<a<<" si "<<b<<" este "<<suma;
return 0;
}