Array

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

if I have this array: male(1) male(2) male(3) male(4
male( ) George Mike Charlie Howar
For i = 1 To
For j = 1 To 4 -
If male(j) > male(j + 1) The
temp = male(j
male(j) = male(j + 1)
male(j + 1) = tem
End I
Nex

What will the final status of male be:
 
* =?Utf-8?B?WWFnZ2Vy?= said:
if I have this array: male(1) male(2) male(3) male(4)
male( ) George Mike Charlie Howard
For i = 1 To 3
For j = 1 To 4 - i
If male(j) > male(j + 1) Then
temp = male(j)
male(j) = male(j + 1)
male(j + 1) = temp
End If
Next

What will the final status of male be:

?!?

Why don't you run the code to see the result?
 
Back
Top