需要代码!时间急,望各位大奆多多帮助!HELP!

需要代码!时间急,望各位大奆多多帮助!HELP!凑字数凑字数

img

img


#include<iostream>
#include<cmath>            //round函数头文件为cmath
using namespace std;
int main()
{ 
    int a,c,i;
    cin>>c;
    for (i=c+1;i<c+10;i++){
        if(i-i/10==c)
            cout<<i<<endl;
    }
    return 0;
}

#include<iostream>
using namespace std;

int main()
{
    int a,b,c,t;
    cin >> c;
    a = c;
    do {
        b = a / 10;
        t = a - b;
        if(c == t)
            cout << a <<endl;
        a++;
    } while (c >= t);
    return 0;
}


您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!
PS:问答VIP年卡 【限时加赠:IT技术图书免费领】,了解详情>>> https://vip.csdn.net/askvip?utm_source=1146287632