I need to ask the user to input any quantity of space/comma-separated integers and add them to an array to then bubble sort them. I only need help with taking an input in an array. I'm losing brain cells, please.
Examples of an input: 10, 9, 8, 6, 7, 2, 3, 4, 5, 1
or: 10 9 8 6 7 2 3 4 5 1
I found some reference code in python, don't know if it's useful:
//--------------------------------str_arr = raw_input().split(' ')
//--------------------------------arr = [int(num) for num in str_arr]