第1个回答 2016-11-18
import java.util.Scanner;
public class Test {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入一个三位整数");
int n = sc.nextInt();
while(n>0){
System.out.print(n%10);
n/=10;
}
}
}本回答被网友采纳