import java.util.Scanner;
public class Hello {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int number;
number = in.nextInt();
int result = 0;
do{
int digit = number % 10;
result =result*10+digit;
System.out.print(digit);
number = number / 10;
}while(number>0);
System.out.println();
System.out.println(result);
}
}
整数分解JAVA
Mcworld8572025-05-14 19:48
相关推荐
二哈赛车手13 小时前
新人笔记---ApiFox的一些常见使用出错为何创造硅基生物13 小时前
C语言 结构体内存对齐规则(通俗易懂版)吃好睡好便好13 小时前
在Matlab中绘制横直方图栗子~~13 小时前
JAVA - 二层缓存设计(本地缓冲+redis缓冲+广播所有本地缓冲失效) demo星寂樱易李13 小时前
iperf3 + Python-- 网络带宽、网速、网络稳定性YDS82913 小时前
DeepSeek RAG&MCP + Agent智能体项目 —— RAG知识库的搭建和接口实现仰泳之鹅14 小时前
【C语言】自定义数据类型2——联合体与枚举之歆14 小时前
DAY_12JavaScript DOM 完全指南(二):实战与性能篇未若君雅裁15 小时前
MyBatis 一级缓存、二级缓存与清理机制cen__y15 小时前
Linux12(Git01)