Qbasic Program to check whether the given number is palindrome or not  

Posted by Mahibabu

REM Program to check whether the given number is palindrome or not.
CLS
INPUT "Enter any digit"; n
a = n
WHILE n <> 0
r = n MOD 10
s = s * 10 + r
n = n \ 10
WEND
IF a = s THEN
PRINT a; " is Palindrome"
ELSE
PRINT a; " is not palindrome "
END IF
END

3 comments

Thanks......

Hi mahesh .. sir i am a student of class 10 of npj... my name is ujjwal rauniyar.Actually this year is our SEE exam so our computer teacher has left our school and nxt teacher came to my school.. he knows everything about computer his name is bharat giri...but his teaching skill is not so good... so i am scared of not getting good marks in computer ...my aim is to be a computer engineer... so i request you if you will help in my subjects i would be very thankful to u .. plz sir... my email....ujjwal.rauniyar11@gmail.com
Facebook id ... ĺoplace kto tmrobf.... plz don't mind with my fb name ... plz help me...sir. ..my no..9779848059740

Thanks sir

Post a Comment

Contributors

My photo
I am Mahesh Bhandari from Kathmandu, Nepal

Check Nepal's Time