answersLogoWhite

0


Best Answer

#include <stdio.h> int main() { int n, n1, rev = 0, rem; printf("Enter any number: \n"); scanf("%d", &n); n1 = n; /* logic */ while (n > 0){ rem = n % 10; rev = rev * 10 + rem; n = n / 10; } if (n1 == rev){ printf("Given number is a palindromic number"); } else{ printf("Given number is not a palindromic number"); } return 0; }

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

1stly u hv to knw wat is palindrom no. ans is palindrom no. is the after doin reverse of any no. u ll get same no. called palindrom.

chart:

1. take input number

2.apply while loop(num!=0)

set condition in loop

rem=num%0;

rev=rev*10+rem;

num=num/10;

3.if(num==rev)

thn palindrom otherwise not.

so above is step and for flow chart take a box of while loop n one line coonect to condtion in the loop box and other for if condition box u ll get flow chart of it.

hope u ll got wat i said if NT reply me i ll make more understanding.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write logic for palindrome numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write palindrome program in c language?

int pallindrom(int p){ /*write all logic*/ }


What Palindrome numbers?

Palindrome numbers are numbers that read the same backwards and forwards, like 32923


Why are there no palindromes that are multiples of 10?

because no number starts with 0. A palindrome has to start and end with the same number. For example you would have to write 020 (twenty) for it to be considered a palindrome, and that would not be the correct way to write numbers.


How do you write a palindrome program in c in Wikipedia?

You don't have to write palindrome programs in wikipedia.


What numbers can you add to make a palindrome?

10+1=11 (which is a palindrome)


What are palendron numbers?

Probably a misspelling of palindrome numbers.


Can a palindrome also be in numbers?

Yes.


Numbers that make a palindrome?

23932


Write a Program in c to find palindrome numbers between any two numbers?

please somebody should help me answer this question..I have a project on it even! It seems almost impossible at the moment.


What is a palindrome meaning sports numbers?

stats


How many digit palindromes numbers are there?

There is no limit to numbers, thus there is no limit to palindrome numbers.


What is the process of logic without numbers?

Most studies in logic: Boolean algebra, predicate logic etc are independent of numbers.