package demo;
import java.util.Scanner;
public class test {
public static void main(String[] args) {
try {
// 求两个数相除的功能
Scanner in = new Scanner(System.in);// 接受键盘上的输入
System.out.println("请输入被除数:");
int number1 = in.nextInt();
System.out.println("请输入除数:");
int number2 = in.nextInt();
System.out.println(number1 + "/" + number2 + "=" + number1 / number2);
} catch (Exception ex) {
System.out.println("您的输入有误。");
}
System.out.println("感谢使用本程序~~~~");
}
}