Saturday 13 June 2015

Source Code Kombinasi

Kombinasi adalah pemetaan

Berikut contoh source code dalam bahasa small basic:

'data
data[1] = "baju daster"
data[2] = "celana panjang"
data[3] = "celana pendek"

'range

range = 3

'copying
For i = 1 To range
  For j = 1 To 3
    block[i][j] = data[j]
  EndFor
EndFor


For i = 1 To range
  For j = 1 To 3
    For k = 1 To 3
      TextWindow.WriteLine(data[i] + ", " + data[j] + ", " + data[k])
    EndFor
  EndFor
EndFor

Berikut contoh source code dalam bahasa small basic dengan jumlah array 1: k

No comments:

Post a Comment