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
2022-11-07 08:47:41

#include <iostream>

using namespace std;

int main()
{
int a,b,c,s=1,d,i;
cin>>a;
for(i=1; i<=a; i++)
{
s=s*i;

}
cout<<s;
}
Good answer
2022-10-25 07:15:10
#include<bits/stdc++.h>
using namespace std;
int main (){
int n,i,s;
cin>>n;
s=1;
for(i=1; i<=n; i++){
s=s*i;
}
cout<<s<<endl;
}
2022-10-18 09:39:40
huul #include<bits/stdc++.h>
using namespace std;
int main (){
int n,i,s;
cin>>n;
s=1;
for(i=1; i<=n; i++){
s=s*i;
}
cout<<s<<endl;
}
2022-10-13 06:38:32
gagaghwdhasgdhuadusadhuabshbh
2022-10-13 04:07:15
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
int i,a,b=1;
cin >> a;
for(i=1; i<=a; i++)
b *= i;
cout << b;
return 0;
}
2022-09-04 09:36:50
your mom is niger

Last edit: 2022-09-04 09:38:16
2022-08-27 06:08:57
nothing much quite frankly hbu
2022-06-22 12:36:17
What are you doin bro?
-Anand
2022-06-02 16:14:39
Scanner in = new Scanner(System.in);
int a,fac=1;
a = in.nextInt();
for(int i=1; i<=a; i++)
{

fac = fac * i;
}
System.out.println(fac);
2022-05-06 06:15:52
a=int(input())
b=1
c=1
for c in range(c,a+1,1):
b=b*c
print(b)
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.