none
Curriculum (spanish) mistake ? RRS feed

  • Question

  • I return to Curriculum (Spanish) 3.2 slide 10
    It use the variable  contenedor = "vacío"
    The contenedor variable, given a value of text. "vacío"
    An alphanumeric value
    But we are working with numbers
    I changed the variable giving contenedor = 0 (numeric)
    I think this is the right way

    .......................................................................................................

    TextWindow.Title = "Platos"
    contenedor = 0

    For i = 1 To 50
      Stack.PushValue(contenedor , " plato número " + i)
      TextWindow.WriteLine(" i = " + i) 
      TextWindow.WriteLine("El número de platos en el contenedor es " + Stack.GetCount(contenedor))
    EndFor


    For i = 1 To 8
      Stack.PopValue(contenedor)    
    EndFor

    TextWindow.WriteLine("Después de tomar 8 platos, el número total de platos es " + Stack.GetCount(contenedor))
    TextWindow.WriteLine("El plato superior en el contenedor es " + Stack.PopValue(contenedor))


    carlosfmur - Buenos Aires

    Sunday, May 19, 2013 8:27 PM

Answers

All replies