Module: (C++) 子例程:过程和函数 - 2


Problem

4/11

一个数的约数

Problem

编写一个返回自然数的约数的函数
例子 <头> <日># <正文>
输入 输出
1 6 4
Write the program below
main()
{
  int n;
  cin >> n;
  cout << numberOfDivisors(n);
} 

     

Program check result

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