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!