v = int(input('請輸入一個整數:')) if v % 3 == 0 and v % 5 ==0: print(v,'即是3的倍數又是5的倍數') else: print('不是3或5的倍數')
v = int(input('請輸入一個整數:')) if v % 3 == 0 and v % 5 ==0: print(v,'即是3的倍數又是5的倍數') else: print('不是3或5的倍數')
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。