Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 21st, 2018
83
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.25 KB
| None
|
0
0
raw
download
clone
embed
print
report
if (n==0) {
System.out.println(1);
} else {
if (n%2==0) {
for (i=2;i<n+1;i+=2) {
p=p*i;
}
System.out.println(p);
} else {
for (i=1;i<n+1;i+=2) {
p=p*i;
}
System.out.println(p);
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
funkcni wrong plies better output 2
Python | 24 min ago | 7.08 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 32 min ago | 0.39 KB
funkcni wrong plies better output
Python | 42 min ago | 7.04 KB
ServerError: received 504 HTTP response
Python | 46 min ago | 2.98 KB
Infinite Ammo
Lua | 48 min ago | 0.64 KB
need
Email | 50 min ago | 0.28 KB
Mad
PHP | 52 min ago | 0.02 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.38 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!