Hello dear community !!!
My name is Cezar, and I am currently learning for the RPA Developper certificate and this is the first time I post a question here
I am trying to solve a challenge I received: to display the numbers from 1 to 10 and from 10 to 1.
I used Do While 2 times and at the end I want to display both arrays in enumerable form:
String.Join(", β, ListDescNumber).ToArray + Environment.NewLine +
String.Join(β, ", ListAscNumber).ToArray
As you can see in the logs below, for any reason ever the first array goes until 0, while I expect to end at 1
and the 2nd array goes until 11, while I expect to stop at 10.
Can you please help me to understand what I do wrong?
I canβt attach the sequence, so I tried to put the whole sequence as an imange
02/05/2020 11:30:34 => [Debug] Debug started for file: Challenge IP6
02/05/2020 11:30:36 => [Info] Challenge IP6 execution started
02/05/2020 11:30:51 => [Info] 1
02/05/2020 11:30:51 => [Info] 2
02/05/2020 11:30:51 => [Info] 3
02/05/2020 11:30:51 => [Info] 4
02/05/2020 11:30:51 => [Info] 5
02/05/2020 11:30:51 => [Info] 6
02/05/2020 11:30:51 => [Info] 7
02/05/2020 11:30:51 => [Info] 8
02/05/2020 11:30:51 => [Info] 9
02/05/2020 11:30:51 => [Info] 10
02/05/2020 11:30:51 => [Info] 10
02/05/2020 11:30:52 => [Info] 9
02/05/2020 11:30:52 => [Info] 8
02/05/2020 11:30:52 => [Info] 7
02/05/2020 11:30:52 => [Info] 6
02/05/2020 11:30:52 => [Info] 5
02/05/2020 11:30:52 => [Info] 4
02/05/2020 11:30:52 => [Info] 3
02/05/2020 11:30:52 => [Info] 2
02/05/2020 11:30:52 => [Info] 1
02/05/2020 11:30:52 => [Info] 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
02/05/2020 11:30:52 => [Info] Challenge IP6 execution ended in: 00:00:16