Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
720 B
0
Indexable
Never
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Vnesi eden broj: ");
            int x = Convert.ToInt32(Console.ReadLine());
            int count = 0;
 
 
 
            for(int i = 1; i <= x; i++)
            {
                if(x % i == 0)
                {
                    count++;
                }
            }
 
            Console.WriteLine("Vneseniot broj ima {0} deliteli, vlukcuvajki go brojot 1 i samiot sebe", count);
 
            Console.Read();
        }
 
    }
}