Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
bubblesort
dmkozyrev
Jan 22nd, 2016
102
0
Never
Add comment
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
void
bubblesort
(
double
*
a,
int
N
)
{
int
i, j
;
double
m
;
for
(
i
=
0
;
i
<
N
-
1
;
i
++
)
for
(
j
=
i
+
1
;
j
<
N
;
j
++
)
if
(
a
[
i
]
>
a
[
j
]
)
{
m
=
a
[
i
]
;
a
[
i
]
=
a
[
j
]
;
a
[
j
]
=
m
}
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Verified Exploit — Fully Work
CSS | 29 min ago | 1.00 KB
Flâw Earn Mehtod
CSS | 35 min ago | 1.00 KB
Smells Like Profit This Month
CSS | 35 min ago | 1.00 KB
Verified Exploit — Fully Work
CSS | 1 hour ago | 1.00 KB
Flâw Earn Mehtod
CSS | 1 hour ago | 1.00 KB
Smells Like Profit This Month
CSS | 1 hour ago | 1.00 KB
Verified Exploit — Fully Work
CSS | 2 hours ago | 1.00 KB
Flâw Earn Mehtod
CSS | 2 hours ago | 1.00 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!