各位大大小弟請教一個問題小弟要設一函數傳入一引數(數值)判斷其是否為質數再傳回boolean值小弟寫的如下 public static boolean primeQ(int n) { for(int i=2;i
www.programmer-club.com.tw