Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Buble sort User
#1
Theodore_16 
Hanya ingin mempersembahkan untuk hn... hihihh

jangan di hina ya gan....

Code:
#include<stdio.h> #include<conio.h> main() { int bil[5]; int j,i,temp; for(i=0;i<5;i++) scanf("%d",&bil[i]); for(j=0;j<4;j++){ for(i=0;i<4-j;i++){ if(bil[i]>bil[i+1]) { temp=bil[i]; bil[i]=bil[i+1]; bil[i+1]=temp; } } } for(i=0;i<5;i++) printf("%d ",bil[i]); getch(); }


kl bersedia juga gk papa, makasih...hheheLove
[Image: 185199_3184785837214_995694628_n.jpg]
Reply


Messages In This Thread
Buble sort User - by aandoni - 11-22-2011, 11:20 PM
RE: Buble sort User - by newbie-herbet - 11-23-2011, 06:13 AM
RE: Buble sort User - by aandoni - 11-23-2011, 09:38 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)