Python 程式(for迴圈寫法). #程式開始 n = int(input('輸入一個正整數:')) for c in range(2,n): if n % c == 0: print('不是質數') break elif c ...
確定! 回上一頁