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
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);
}
2018-10-01 03:32:28
#include <iostream>
using namespace std;

int main() {
int a,b = 1;
cin >> a;
while (a>0){
b=b*a;
a--;
}
cout<<b;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.