Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 4th, 2018
2,325
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
3 years
#
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
Crypto admin access
8 min ago | 0.80 KB
+12,000$ in 2 days
CSS | 8 min ago | 0.80 KB
Free Crypto Method by ONETECH
CSS | 8 min ago | 0.80 KB
Documents
8 min ago | 0.80 KB
The Road Not Taken
3 hours ago | 0.79 KB
DRV8874Driver (AI coded)
Python | 13 hours ago | 7.14 KB
action_names_for_shortcuts_win
1 day ago | 3.38 KB
Gatewarden Build Order -- Idle Hacking
1 day ago | 1.18 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!