Advertisement
31ph4n70m

minimun_of_two.vb

Nov 21st, 2019
650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.76 KB | None | 0 0
  1. 'VisualBasic solution to codeabbey challenge 30
  2. Imports System.Collections.Generic
  3. Module Min_val_two
  4.     Sub Main()
  5.         Dim a, I1 As Integer
  6.         I1 = CInt(Console.ReadLine())
  7.         Dim I2 As String
  8.         Dim list As IList(Of String)
  9.         Dim resp As String
  10.         For a = 0 To I1-1
  11.             I2 = Console.ReadLine()
  12.             'resp = I2.Split(New Char(-1) {}, StringSplitOptions.RemoveEmptyEntries)
  13.             list = New List(Of String)(I2.Split(New String() {" "}, StringSplitOptions.None))
  14.             If list(0) < list(1) Then
  15.                 resp = resp + CStr(list(0)) + " "
  16.             Else
  17.                 resp = resp + CStr(list(1)) + " "
  18.             End If
  19.         Next
  20.         Console.WriteLine (resp)
  21.     End Sub
  22. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement