Module: (Python) 子例程:过程和函数 - 1


Problem

11/11

一个数的所有约数

Problem

编写一个程序,在一行中按升序显示数字 N (1<= N <= 103) 的所有除数。
使用此过程,编写一个程序,对于所有输入的自然数(数字输入到 0,0 是输入结束的标志)显示当前数字的约数
例子 <头> <日># <正文>
输入 输出
1 10
5
6
0
1 2 5 10
15
1 2 3 6
Write the program below
# процедура           
# основная программа           

     

Program check result

To check the solution of the problem, you need to register or log in!