Thursday, July 9, 2009

C language help!!! bubble sorting?

a program that uses bubble sorting in c language, ask the user to input 10 numbers and compares the 1st and last then swaps the 1st and 2nd and so on...

C language help!!! bubble sorting?
You may contact a C helper live at website like http://ccietutorial.com/
Reply:Ok, here are some things u have to do before writing the program:





1- Go to Google or to Wikipedia.org, and search for "bubble sort".





2- Understand how bubble sort works, and try it urself on a peice of paper on some random numbers of ur own.





3- Do not try to code the program in C unless u have understand it well.





Good luck


Bye
Reply:Your homework does not magically do itself =P





Get the users input and store them in an array.


Make a loop.


If one element is larger then the next element, then swap them.





Look at the pseudocode for more help:

mothers day flowers

No comments:

Post a Comment