What is a palindrome ? What are palindromic numbers. How can we generate a palindrome from a given number.?
Favorite Answer
11, 101, 12233221, etc
numbers same backwards as forwards.
generate them? just repeat the same digits in the reverse order.
bob
hannah
a man, a plan, a canal, panama
Each of the above spells the same thing forward and backwards.
Palindromic numbers:
11
1221
123321
The algorithm of making palindome will be (pseudo code)
Function PalindromeNumber(num: Integer): String; // Return Value
Result := Str(Num) + StrRev(Str(Num));
Convert the Number to String and Reverse It and add to the original string
123 becomes 123321
numbers: 787 220022, 121, etc u get the picture!
hope that helps!
- Academic Writing
- Accounting
- Anthropology
- Article
- Blog
- Business
- Career
- Case Study
- Critical Thinking
- Culture
- Dissertation
- Education
- Education Questions
- Essay Tips
- Essay Writing
- Finance
- Free Essay Samples
- Free Essay Templates
- Free Essay Topics
- Health
- History
- Human Resources
- Law
- Literature
- Management
- Marketing
- Nursing
- other
- Politics
- Problem Solving
- Psychology
- Report
- Research Paper
- Review Writing
- Social Issues
- Speech Writing
- Term Paper
- Thesis Writing
- Writing Styles