php - How can I input a string of comma separated numbers, and then reverses its order and displays the reversed array in C# -
i supposed use built-in explode , implode functions in code. example, if input 12, 56, 34, 79, 26 output should reverse 26 79 34 56 12.
and here code enter image description here
first, assuming input string, use
string myinput = "12, 56, 34, 79, 26"; string[] inputs = str.split(','); array.reverse(inputs);
else if want derive own method, see great stack on flow anser here
Comments
Post a Comment