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-12-03 03:21:54
#include <iostream>
using namespace std;

int main() {

int n, s=1;
cin>>n;
for(int i = 1; i<=n;i++){
s=s*i;

}

cout<<s;

return 0;
}

Last edit: 2022-12-03 03:22:05
2022-12-03 03:04:51
jojo

Last edit: 2022-12-03 03:04:58
2022-12-03 03:04:26
bi sanal niilj bn huuhduudeeeeee
2022-11-23 06:35:50
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
We've known each other for so long
Your heart's been aching but you're too shy to say it
Inside we both know what's been going on
We know the game and we're gonna play it
And if you ask me how I'm feeling
Don't tell me you're too blind to see
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give, never gonna give
(Give you up)
We've known each other for so long
Your heart's been aching but you're too shy to say it
Inside we both know what's been going on
We know the game and we're gonna play it
I just wanna tell you how I'm feeling
Gotta make you understand
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
2022-11-11 01:32:30
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
We've known each other for so long
Your heart's been aching but you're too shy to say it
Inside we both know what's been going on
We know the game and we're gonna play it
And if you ask me how I'm feeling
Don't tell me you're too blind to see
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give, never gonna give
(Give you up)
We've known each other for so long
Your heart's been aching but you're too shy to say it
Inside we both know what's been going on
We know the game and we're gonna play it
I just wanna tell you how I'm feeling
Gotta make you understand
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
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
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.