Module: 子程序:过程和函数 - 1


Problem

11/12

一个数的所有约数

Problem

编写一个程序,在一行中显示 N 的所有约数,并用空格分隔。
使用此过程,编写一个程序,对于所有输入的自然数(数字输入到 0,0 是输入结束的标志)显示当前数字的约数
例子 <头> <日># <正文>
输入 输出
1 10
5
6
0
1 2 5 10
15
1 2 3 6
Write the program below
var n: integer;

// процедура        
// основная программа        

     

Program check result

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