Competitive Programming
Try To Help To Generate & Improve The Idea Of Competitive Programming
Wednesday, August 23, 2017
1153 Simple Factorial URI Problem Only Solution in C#
using System;
class Exercise8
{
static int joy(int n)
{
int result=1;
for(int i=1;i<=n;i++)
{
result=result*i;
}
return result;
}
static void Main()
{
int n=Convert.ToInt32(Console.ReadLine());
int a= joy(n);
Console.WriteLine(a);
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment