C++.Net program to input and sort in up to 100 integers in ascending order | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

C++.Net program to input and sort in up to 100 integers in ascending order

16th Oct 2022, 10:53 PM
abubakar ishaq
abubakar ishaq - avatar
1 Answer
+ 1
Depending on your skill level, you can explore different options for doing that. At a beginner level, the easiest solution is to "take" the maximum in the array (formed from the input), then put it into another array which represents the sorted array. Do this till the input array is empty For better algorithms, you can explore the sorting algorithms explained here on Sololearn https://www.sololearn.com/learn/774/?ref=app
17th Oct 2022, 12:26 PM
XXX
XXX - avatar