package HomeWork;
import java.util.Scanner;
public class Test01 {
/*
* 从键盘输入一个正整数,按数字的相反顺序输出
*/
static Scanner in = new Scanner(System.in);
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("请输入一串数字:");
int b = in.nextInt();
while(b!=0){
System.out.print(b%10);
b = b/10;
}
}
}