C++ sorting array of numbers (smallest to largest)?

write a program that uses a function to read in and sort an array of 10 integers into ascending order (smallest to largest). I need it to use a bubble sort but I dont know how to use one. If you could just write the bubble sort part and I'll figure out the rest thanks.
1 answer 1