国产成人AV一区二区三区在线_国产成人精品无码免费看_国产成人无码无卡在线观看_国产精品成人A区在线观看_国产日韩精品欧美一区_国产亚洲精品自在久久蜜TV_久草热久草热线频97精品_久久久噜噜噜久久中文福利_久久婷婷五月综合色国产免费观看_日日狠狠久久偷偷色综合0,九一桃色在线观看,久久97精品久久久久久久不卡,国产成人精品亚洲精品

jiva編程輸入任意三組整數(shù)輸出三組整數(shù)的商輸入為0或不是整數(shù)提示錯(cuò)誤并重新輸入數(shù)據(jù)

訪客2025-01-23 10:27:111

程序參考:///345將4589467892356234752354防重復(fù)2364236442534645675756

public static void main(String[] args) {Scanner sc=new Scanner(System.in);int a,b;for(int i=0; i<3; i++){a=b=0;do {try {a=sc.nextInt();b=sc.nextInt();if (a==0 || b==0) throw new Exception("");} catch(Exception e) {System.out.println("輸入錯(cuò),,請(qǐng)重新輸入!");sc=new Scanner(System.in);}} while(a==0 || b==0);System.out.printf("%d/%d=%d",a,b,a/b);}}

文章評(píng)論