Răspuns:
include <bits/stdc++.h>
using namespace std
int SumCif(int n)
{
int s=0;
while (n>0)
{
s=s+n÷10;
n=n/10;
}
return s;
}
int main()
{
int a, b, i;
cin>>a>>b;
for (i=a; i<=b; i++)
if (SumCif(i)) cout<<i<<" ";
return 0;
}
Sper sa nu fi gresit ceva.
succes! ♡︎♥︎♡︎