• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Study Abroad
  • Writing Services
  • About Us
  • Contact
  • Blog

AcademicsHQ

Instant access to Study Resources, 24/7 Homework Help, Tutors, to help you ace your homework.

homework help
  • Academic Writing
    • Dissertation Writing
    • Report Writing
  • Research Process
  • Referencing Guide
  • Resume Writing
Home » Blog » What is a ‘palindrome’

What is a ‘palindrome’

March 8, 2018 by academicshq Leave a Comment

computer for kids

Heard of the word ‘palindrome’ before? Here’s what it means.

A palindrome is a word, phrase, number, or other sequence of characters which reads the same, when you read it forward or backward.


GET INSTANT HELP FROM EXPERTS!

  • Looking for any kind of help on your academic work (essay, assignment, project)?
  • Want us to review, proofread or tidy up your work?
  • Want a helping hand so that you can focus on the more important tasks?

Hire us as project guide/assistant. Contact us for more information


Here are some examples of palindrome words:

Madam, racecar, malayalam, did, deed, civic, pop, eye, rotor, radar, nun, mom, and dad.

Students who are prepare for English spelling or Quiz competition should know about this word.

Even computer engineering students and those who are learning programming will come across this word, as they have to write the logic to determine if a word is palindrome or not.

Here’s the logic to determine if a number is palindrome, with the help of an example (say 1221).

Temp = i = 1221 before the beginning of the while loop.
Iteration 1:
– temp%10 gives you the rightmost digit (which is 1 here)
– temp/10 removes the rightmost digit and truncates the number to 122.
– now use another variable (revrs) to build the number backwards (the rightmost digit goes to leftmost and so on)
– revrs after first iteration is 1.

Iteration 2:
– temp is 122
– temp%10 gives you the rightmost digit (which is 2 here)
– temp/10 removes the rightmost digit and truncates the number to 12.
– now use another variable (revrs) to build the number backwards (the rightmost digit goes to leftmost and so on)
– revrs after this iteration is (1*10 + 2) = 12.

Iteration 3:
– temp is 12
– temp%10 gives you the rightmost digit (which is 2 here)
– temp/10 removes the rightmost digit and truncates the number to 1.
– now use another variable (revrs) to build the number backwards (the rightmost digit goes to leftmost and so on)
– revrs after this iteration is (12*10 + 2) = 122.

Iteration 4:
– temp is 1.
– temp%10 = 1.
– temp/10 = 0 (which means the while loop will end after this)
– revrs = 122*10 + 1 = 1221.

Now, revrs is the reverse representation of the original number. So that you can now compare i with revrs directly and get the desired result.

Filed Under: Computers

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


Primary Sidebar

Recent Posts

  • Hindi Project Work: Hindi Pariyojana Karya (हिंदी परियोजना कार्य)
  • Geography Projects Class 10
  • Money Education for Kids: Teach Them Financial Responsibility
  • Bachelor of Management Studies (BMS): Project Work
  • BMS (Bachelor of Management Studies): Assignment & Project Topics

Categories

  • Black Book Projects
  • Book Reviews
  • Business Law
  • CBSE Study Notes
  • Computers
  • Digital Business
  • Economics
  • Education Articles
  • English Literature
  • Environmental
  • Essays
  • Foreign Education
  • General
  • Geography
  • German
  • Global Education
  • Hindi
  • History
  • Hotel Management
  • HRM
  • Jobs
  • Management
  • Management Notes
  • Math
  • Media Study Notes
  • Movie Reviews
  • Primary
  • Research
  • Sample Essays
  • School Projects
  • School Study Notes
  • Science
  • Self Improvement
  • Services
  • Social Studies
  • Sociology
  • Solved Assignments
  • Student Software
  • Uncategorized
  • Writing Tips

Footer

CLASS NOTES

  • Class 10 . Class 9
  • Class 8 . Class 7
  • Class 6 . Class 5
  • Class 4 . Class 2
  • Class 2 . Class 1

ACADEMIC HELP

  • Essay Writing
  • Assignment Writing
  • Dissertation Writing
  • Thesis Writing
  • Capstone Projects
  • Homework Help
  • Report Writing

SERVICES

  • Writing Services
  • Book Review
  • Ghost Writing
  • Make Resume/CV

ABOUT US

  • About Us
  • Contact
  • Privacy Policy
  • Blog

Copyright © 2025 · News Pro on Genesis Framework · WordPress · Log in