Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7205 - n!

n! ол.

Input

Int төрлийн бүхэл тоо өгөгдөнө.

Output

Өгөгдсөн тооны факториал.

Example

Input:
5

Output:
120

Нэмсэн:Bataa
Огноо:2011-06-12
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2021-09-13 13:47:17
HUUL GESEN BAAGII BOL UGUI SHU
2021-03-10 12:50:05
#include<stdio.h>
int main()
{
int i,a,b=1;
scanf("%d",&a);
for(i=1; i<=a; i++)
b=b*i;
printf("%d",b);
return 0;
}
mai huul
2021-01-15 04:53:54
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long i,n,s=1;
cin>>n;
for(i=1;i<=n;i++)
s=s*i;
cout<<s<<endl;
return 0;
}
2021-01-15 04:44:41
HUUL
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long i,n,s=1;
cin>>n;
for(i=1;i<=n;i++)
s=s*i;
cout<<s<<endl;
return 0;
}
2020-10-31 04:18:33
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,i,s=1;
cin>>n;
for(i=1;i<=n;i++)
s=s*i;
cout<<s<<endl;
return 0;
} gendee ni bnoo
2020-08-17 06:19:41
#include <iostream>
#include <math.h>
using namespace std;

int main() {
int n, a=1;
cin>>n;
for(int i=1; i<=n; i++){
a = a*i;
};
cout<<a;
// your code here

return 0;
}
2019-11-22 14:37:34
#include<stdio.h>

int factorial(int i){

if(i==1)

return 1;

else return factorial(i-1)*i;

}

main(){
int n;
scanf("%d", &n);
printf("%d",factorial(n));
return 0;
}
2019-10-23 06:13:01
#include <iostream>
using namespace std;

int main() {
int a,b = 1;
cin >> a;
while (a>0){
b=b*a;
a--;
}
cout<<b;
}
2019-03-25 04:51:05
#include <iostream>
using namespace std;
main()
{
int n,i,s;
cin>>n;
for(i=2;i<=n;i++)
s=s*i;
cout<<s;
return 0;
}
2019-01-04 05:26:59
#include<stdio.h>
#include<stdlib.h>

using namespace std;
int main()
{
int a,s,i;

scanf("%d", &a);
s=1;
for(i=1;i<=a;i++)
s=s*i;

printf("%d", s);
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.