python\na = int(input("请输入两位数整数a:"))\nb = int(input("请输入两位数整数b:"))\n\nc = (a % 10) * 1000 + (a // 10) + (b % 10) * 10 + (b // 10) * 100\nprint("合并后的整数c为:", c)\n\n\n运行示例:\n\n请输入两位数整数a:23\n请输入两位数整数b:45\n合并后的整数c为: 5432\n


原文地址: https://www.cveoy.top/t/topic/p37Z 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录