Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 4th, 2018
2,233
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
2 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
Untitled
21 min ago | 8.66 KB
Untitled
2 hours ago | 12.72 KB
Schutzrechte, Games, Software, Hardware und P...
3 hours ago | 6.98 KB
Untitled
4 hours ago | 9.53 KB
Untitled
5 hours ago | 6.78 KB
Untitled
6 hours ago | 21.79 KB
Untitled
8 hours ago | 16.31 KB
Untitled
9 hours ago | 7.33 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!