package pro;
import java.util.Scanner;
/**
* Name: WHY
*
* @date:2023/9/26
*/
public class pro05 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n;
System.out.println("请输入一个两位数:");
n = input.nextInt();
// 25 % 10 -----> 5
// 25 / 10 -----> 2
System.out.println("个位数为:"+n % 10);
System.out.println("十位数为:"+n / 10);
}
}
输入两位数,按数位逆序输出“%” “/”
最新推荐文章于 2024-08-18 22:05:18 发布