Solution to the problem number 265 of AceptaelReto - 265.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string numero,numero1="";
    cin>>numero;
    while(numero[0]-48!=0)
    {
        long long int suma=0;
            suma+=stoi(numero);
        for(int i=0;i<numero.length()-1;i++)
        {
            for(int j=i+1;j<numero.length();j++)
            {
             numero1+=numero[j];
            }
            suma+=stoi(numero1);
            numero1="";
        }
        cout<<suma<<"\n";
        cin>>numero;
    }
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!