Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 4th, 2018
1,944
0
Never
1
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
using
namespace
std
;
int
main
(
)
{
int
x
;
cin
>>
x
;
if
(
x
==
1
)
cout
<<
-
1
;
else
cout
<<
x
-
x
%
2
<<
' '
<<
2
;
}
Comments
Oditi_Ritchil
307 days
#
text
0.02 KB |
1
0
view
report
reply
why did we take x-x%2 ?
Add Comment
Please,
Sign In
to add comment
Public Pastes
Filesystem Abstractions
C | 4 min ago | 1.11 KB
Steam: show state of fossilize_replay (tested...
Python | 11 min ago | 1.55 KB
Steam: show state of fossilize_replay (tested...
Python | 11 min ago | 0.88 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 24 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 25 min ago | 0.39 KB
meson-log.txt
INI file | 38 min ago | 13.41 KB
Formidable Forms Addons
Bash | 47 min ago | 5.60 KB
Leaflet with geocoder
HTML | 54 min ago | 3.71 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!