Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Return the positive value in C++
ahmed0saber
Nov 12th, 2020
39
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
using
namespace
std
;
int
main
(
)
{
int
x
;
cout
<<
"Enter a number : "
;
cin
>>
x
;
if
(
x
<
0
)
{
x
=
-
x
;
}
cout
<<
"The positive value : "
<<
x
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Make $2500 in 15 minutes E
JavaScript | 32 sec ago | 0.08 KB
MAKE $5000 INSTANTLY Y
JavaScript | 34 sec ago | 0.08 KB
Make 3500$ in 20 MIN [Method] V
JavaScript | 38 sec ago | 0.08 KB
MAKE $5000 INSTANTLY W
JavaScript | 43 sec ago | 0.08 KB
MAKE $5000 INSTANTLY Y
JavaScript | 1 min ago | 0.08 KB
✅ MAKE $22OO IN 10 MIN N
JavaScript | 1 min ago | 0.08 KB
Make $2500 in 15 minutes 4
JavaScript | 1 min ago | 0.08 KB
✅ MAKE $22OO IN 10 MIN Z
JavaScript | 1 min ago | 0.08 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!