Competitive Programming
Try To Help To Generate & Improve The Idea Of Competitive Programming
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment