WAP in QBASIC check whether a number is palindrome or not
Answers
Answered by
14
- Let num be the input number. Convert num to string and compare ith character from the start and ith character from last using a loop. If any pair of ith character from the start and ith character from the end are not equal then it means that the number is not a palindrome, set flag = 0.
Answered by
0
Answer:
None of these two is a palindrome
Explanation:
please see if its correct
Similar questions