Slut,
j´aimerai la ligne de commande Qbasic qui me permet d´afficher sur l´ecran la suite de chiffres allant de 0.1 à 100.0 sur plusieurs ligne, de maniere à contenir 10 chiffres par ligne.
merci bien
Besoin D´aide en QBASIC
(3 messages) (3 voix)-
Posté il y a 4 années #
-
Salut !
Si j'ai bien compris ton problème, je verrais bien quelque chose comme cela :
[code]DIM i AS INTEGER
DIM j AS INTEGER
j = 0
CLS
FOR i = 1 TO 1000
j = j + 1
PRINT i / 10;
IF j >= 10 THEN
PRINT
j = 0
END IF
NEXT i[/code]Posté il y a 4 années # -
Salut
CLS
PRINT
a = 0
10 REM
FOR b = 1 TO 10
PRINT " "; USING "###.#"; a
a = a + .1
IF a >= 100 THEN 50
NEXT b
PRINT
PRINT "pour sur espace pour continuer ou sur f pour sotir"
PRINT
20 REM
z$ = ""
z$ = INKEY$
IF z$ = "" THEN 20
IF z$ = CHR$(32) THEN 10
IF z$ = "f" THEN END
GOTO 20
50 ENDPosté il y a 4 années #
Écrire une réponse
Vous devez être connecté pour poster.
