Wednesday, August 23, 2017

1157 Divisors IURI Problem Only Solution in C#



using System; 

 class Exercise8


     static void Main()
    
    {
        int N=Convert.ToInt32(Console.ReadLine());
       
        int i;
       
        for(i=1;i<=N;i++)
       
        {
                if(N%i==0)
               
                {
                        Console.WriteLine(i);
                }
               
        }
       
    }
   
}

No comments:

Post a Comment