[Gambas-user] [Gambas Bug Tracker] Bug #1293: problems to interact with the terminal? (Playground)

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Wed Apr 11 16:29:37 CEST 2018


http://gambaswiki.org/bugtracker/edit?object=BUG.1293&from=L21haW4-

Víctor PEREZ reported a new bug.

Summary
-------

problems to interact with the terminal? (Playground)

Type             : Request
Priority         : Low
Gambas version   : Unknown
Product          : Unknown


Description
-----------

'by postapase  10 abr 2018 
'http://novatocodegambas.blogspot.com.uy/ 

 
Public Sub Main() 

  Dim A, B, C As Integer 

  
REPETIR1: 

  Repeat 

    Print "Ingrese número par menor: "   

    Try Input A 

    'si no es un número repite 

    If Error Then Goto REPETIR1 

    'sino es un número par repite 

  Until Not A Mod 2 

   

REPETIR2: 

  Repeat 

    Print "Ingrese número par Mayor a " & (A + 1)  

    Try Input B 

    'si no es un número repite 

    If Error Then Goto REPETIR2 

    'sino es un número par repite 

    If B Mod 2 Then Goto REPETIR2 

    'si no es mayor que a+1 repite 

  Until Not B <= (A - 2) 

  C = A 

  While C <= B 

    Print C 

    C += 2 

  Wend 

   
End


System information
------------------

[System]
Gambas=3.10
OperatingSystem=Linux
Kernel=4.4.0-53-generic
Architecture=x86
Distribution=Linux Mint 18.1 Serena
Desktop=MATE
Theme=Gtk
Language=es_UY.UTF-8
Memory=1757M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.803.0
GTK+2=libgtk-x11-2.0.so.0.2400.30
GTK+3=libgtk-3.so.0.1800.9
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.58.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.5.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6




More information about the User mailing list