Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Palindrone help, please
#11
Why not something simple like this:
Code:
Cls
Input "the word/words"; a$
Mixer$(UCASE$(a$)) = b$
If UCASE$(a$) = b$ Then
Print "Its a palindrome"   'however you spell it
Else Print "Its not a palinmdrome"
end if
end
Uhhh....
Why didnt anyone tell me Mixer$ isn't a real comand?
<---- goes and destroys his code
Reply
#12
Quote:We "can't" use the % sigh, as we haven't learned it in class.

% is just a variable suffix that tells QBasic it's an integer
  • % integer
    & long integer
    ! single precision
    # double precision
    $ string

example a variable called MyVariable! can store decimal numbers
while AnotherVariable% only can store integers (note the suffixes
and compare to the list above)
/post]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)