Module AscendingSS Sub Main() Dim n, i, j, t As Integer Console.WriteLine("Selection Sorting in Ascending Order") Console.WriteLine("------------------------------------") Console.WriteLine() Console.Write("Enter the number of Elements: ") n = CInt(Console.ReadLine()) Dim arr(n) As Integer For i = 0 To n - 1 Console.Write("Enter the " & (i + 1).ToString & "th element: ") arr(i) = CInt(Console.ReadLine()) Next Console.WriteLine("Array Contains...") For i = 0 To n - 1 Console.Write(arr(i) & " ") Next Console.WriteLine() For i = 0 To n - 2 For j = i + 1 To n - 1 If arr(i) > arr(j) Then t = arr(i) arr(i) = arr(j) arr(j) = t End If Next Next Console.WriteLine("Ascending Order: ") For i = 0 To n - 1 Console.Write(arr(i) & " ") Next Console.ReadLine() End Sub End Module
Visual Basic dot net VB.net programming microsoft .net framework object oriented language network enabled technology visual basic 2005 IDE integrated development environment console application microsoft cre common runtime environment
Selection Sorting
Subscribe to:
Post Comments (Atom)
170 neyin numarası
ReplyDelete170 nerenin numarası
ümraniye lg klima servisi
ReplyDeletekartal alarko carrier klima servisi
tuzla toshiba klima servisi
pendik samsung klima servisi
kadıköy vestel klima servisi
maltepe bosch klima servisi
üsküdar alarko carrier klima servisi
beykoz daikin klima servisi
ataşehir toshiba klima servisi
Good text Write good content success. Thank you
ReplyDeletekibris bahis siteleri
betmatik
tipobet
betpark
kralbet
bonus veren siteler
slot siteleri
mobil ödeme bahis
niğde
ReplyDeletekırklareli
osmaniye
siirt
urfa
74CAO7
salt likit
ReplyDeletesalt likit
dr mood likit
big boss likit
dl likit
dark likit
RWHNYK
https://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
OT51V
ورنيش شفاف
ReplyDeleteشركة كشف تسربات المياه بالاحساء egcgW6mVjS
ReplyDelete