Sha256: 6e318ef0bf455b4cab762ac62f1e4bc294400f64c4c9b2757e8e681950dc5f7f

Contents?: true

Size: 861 Bytes

Versions: 5

Compression:

Stored size: 861 Bytes

Contents

# isaisahin loop
['a','b','c','d'].isaisahin na_ganito |titik|
  mag_print "Ang titik ay #{titik}"
wakas

# isaisahin loop on range
(1..10).isaisahin na_ganito |numero|
  mag_print "Ang numero ay #{numero}"
wakas

# while loop
numero = 1
habang numero < 10 ganito
  mag_print "Ang numero ay #{numero} na"
  numero += 1
wakas

# begin while
numero = 0
panghuling_numero = 5
simula
  mag_print "Ang numero ay #{numero} na"
  numero += 1
wakas habang numero < panghuling_numero

# until
numero = 0
panghuling_numero = 5
hanggang numero > panghuling_numero ganito
  mag_print "Ang numero ay #{numero} na"
  numero += 1
wakas

# begin until
numero = 0
panghuling_numero = 5
simula
  mag_print "Ang numero ay #{numero} na"
  numero += 1
wakas hanggang numero < panghuling_numero

# for loop
para_ang numero na_nasa 0..5
   mag_print "Ang numero ay #{numero} na"
wakas

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bato-0.0.15 mga_halimbawa/kontrol-sa-pagiikot.bt
bato-0.0.13 mga_halimbawa/kontrol-sa-pagiikot.bt
bato-0.0.12 mga_halimbawa/kontrol-sa-pagiikot.bt
bato-0.0.11 mga_halimbawa/kontrol-sa-pagiikot.bt
bato-0.0.10 mga_halimbawa/kontrol-sa-pagiikot.bato