Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
prob 1 pbinfo
catalyn
Nov 6th, 2014
147
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
using namespace std;
int fact(int n)
{
int i,p=1;
for(i=1;i<=n;i++)
p=p*i;
return p;
}
int main()
{
int n;
cin>>n;
cout<<fact(n);
return 0;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
29 min ago | 22.79 KB
✅ VIP Method
CSS | 54 min ago | 0.94 KB
Free Crypto Exploit
CSS | 55 min ago | 0.94 KB
✅ Swapzone Exploit
CSS | 55 min ago | 0.94 KB
Untitled
2 hours ago | 6.98 KB
Untitled
2 hours ago | 16.20 KB
Copy Squad Ops: Process Chat Meetup Cal Invit...
4 hours ago | 0.69 KB
DCS ChatGPT Debug
4 hours ago | 25.54 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!