Dim Inputs(19) as Decimal
Dim AmountofNumbers as Integer
Dim AmountofNumbersCompared
Inputs(Count) = Console.ReadLine()
If Inputs(Count) = -1 Then
AmountofNumbers = AmountofNumbers + 1
AmountofNumbersCompared = AmountofNumbers
Console.WriteLine(AmountofNumbers)
For Count2 = 0 To AmountofNumbers Step 1
For Count = 0 To AmountofNumbersCompared - 2 Step 1
If Inputs(Count) > Inputs(Count + 1) Then
Inputs(Count) = Inputs(Count) + Inputs(Count + 1)
Inputs(Count + 1) = Inputs(Count) - Inputs(Count + 1)
Inputs(Count) = Inputs(Count) - Inputs(Count + 1)
AmountofNumbersCompared = AmountofNumbersCompared - 1
For Count = 0 To AmountofNumbers-1 Step 1
Console.WriteLine(Inputs(Count))