[其它问题] 悬赏题

 
7306 20
LZH实名认证 2022-5-25 08:34:15 | 显示全部楼层 |阅读模式
25红币
一个三位数,百位上的数比十位上的数大1,个位上的数是百位上的数的2倍,若十位上的数为3,这个三位数是多少?



用C++实现


最佳答案

查看完整内容

438(死三八?)
胡h 2022-9-2 07:01:41 | 显示全部楼层
#include<stdio.h>
using namespace std;
int main()
{
    int g,s,b;
    s=3;
    b=s+1;
    g=b*2;
    cout<<b*100+s*10+g;
    return 0;
}
回复

使用道具 举报

无语先锋 2022-5-25 08:34:16 来自手机 | 显示全部楼层
438(死三八?)
回复

使用道具 举报

无语先锋 2022-5-26 15:16:56 来自手机 | 显示全部楼层
438(死三八?)
回复

使用道具 举报

LZH实名认证 2022-5-26 18:43:30 | 显示全部楼层

如果可以,麻烦把过程发一下。
回复

使用道具 举报

TM_Sharweek 2022-8-10 17:03:31 | 显示全部楼层
#include<stdio.h>
using namespace std;
int main()
{
    int g,s,b;
    s=3;
    b=s+1;
    g=b*2;
    cout<<b*100+s*10+g;
    return 0;
}
回复

使用道具 举报

360 2022-8-18 09:00:50 | 显示全部楼层
回复

使用道具 举报

360 2022-8-18 17:52:16 | 显示全部楼层
回复

使用道具 举报

china. 2022-8-29 16:55:47 | 显示全部楼层
就会python写代码,手算438
回复

使用道具 举报

胡h 2022-9-4 18:02:59 | 显示全部楼层
胡h 发表于 2022-9-2 07:01
#include
using namespace std;
int main()

欧耶 我现在应该连脚本小子都算不上
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行