1.将一个整数倒序输出 输入格式 : 12345 输出格式 : 54321 代码: package com.itheima; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int t,m=0; t = sc.nextInt(); while(t > 0){ m = 10 *m + t % 10; t /= 10; } System.out.println(m); } }