09-25-2008, 02:21 AM
Hi, Neo:
Yes, your program is very perfect.!!!
My program is simple.
The two programs do the same thing.
I think your program is perfect, but excessive.
My program is this:
......................................................................
INPUT "Text / Number to comp. = "; z$
PRINT z$
PRINT
l = LEN(z$)
FOR n = 1 TO l
a$ = MID$(z$, n, 1)
b$ = MID$(z$, (l + 1) - n, 1)
IF a$ <> b$ THEN PRINT "No es capicua / Not is capicua": BEEP: GOTO 20
NEXT n
PRINT "Si, es capicua / Yes, is capicua"
20 :
END
...................................................................................
Aprox. 10 Lines.
I think that the development must be to proportional the expected result.
Your program is completely perfect.!!!
Greetings from Spain
Thanks for your interest!!!
Yes, your program is very perfect.!!!
My program is simple.
The two programs do the same thing.
I think your program is perfect, but excessive.
My program is this:
......................................................................
INPUT "Text / Number to comp. = "; z$
PRINT z$
l = LEN(z$)
FOR n = 1 TO l
a$ = MID$(z$, n, 1)
b$ = MID$(z$, (l + 1) - n, 1)
IF a$ <> b$ THEN PRINT "No es capicua / Not is capicua": BEEP: GOTO 20
NEXT n
PRINT "Si, es capicua / Yes, is capicua"
20 :
END
...................................................................................
Aprox. 10 Lines.
I think that the development must be to proportional the expected result.
Your program is completely perfect.!!!
Greetings from Spain
Thanks for your interest!!!