버블정렬
| Comment
#include
int A[5] = { 70,50,20,90,30 };
int i = 0, j = 0, t = 0;
for (i = 0; i < 5; i++)
{
for (j = i + 1; j < 5; j++)
{
if (A[i] > A[j])
{
t = A[i];
A[i] = A[j];
A[j] = t;
}
}
printf("%d ", A[i]);
}
return 0; }
c언어
버블정렬
kjunh972@gmail.com
내용이 없네요....
arrow_back
Newer
Older
arrow_forward
Other Post
Mar (CSS 라이브러리)
안드로이드 코드 하이라이터
한글도구
OS부팅하기
네트워크
테마 업그레이드
Comments