Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
bubblesort
dmkozyrev
Jan 22nd, 2016
88
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
Untitled
1 hour ago | 6.70 KB
Untitled
3 hours ago | 5.89 KB
client-main mortar and pestle not working
5 hours ago | 268.99 KB
server-main mortar n pestle not working
5 hours ago | 282.40 KB
Untitled
7 hours ago | 12.69 KB
Untitled
8 hours ago | 7.36 KB
pokemon
9 hours ago | 4.25 KB
Untitled
9 hours ago | 27.26 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!