LoginSignup
1
0

More than 1 year has passed since last update.

paizaラーニング「約数の列挙 Python3編」

Posted at

私の解答

n = int(input())
for i in range(1, n + 1):
    if n % i == 0:
        print(i)

解答例

N = int(input())

for i in range(1, N + 1):
    if N % i == 0:
        print(i)

ほぼ同じ解答でした!

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0