Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as Python by curry ( 4 years ago )
# homework_3.py
# 題目: https://zerojudge.tw/ShowProblem?problemid=a147

num = input('請輸入小於 10000 的整數: ')

for n in range(1,int(num)):
    if n % 7 == 0:
        n -= 1
    else:
        print(n)

 

Revise this Paste

Parent: 114670
Your Name: Code Language: