using System;
namespace DividersAmount
{
class Program
static void Main(string[] args)
int n = int.Parse(Console.ReadLine());
int amount = 0;
for (int i = 1; i <= n; i++)
if (n % i == 0) amount++;
}
Console.WriteLine(amount);
Console.ReadKey();
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
using System;
namespace DividersAmount
{
class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
int amount = 0;
for (int i = 1; i <= n; i++)
{
if (n % i == 0) amount++;
}
Console.WriteLine(amount);
Console.ReadKey();
}
}
}