# Category: flowchart

### Draw Flow Chart of Palindrome Number

October 5, 2018

__Flow Chart of Palindrome Number__

__What is Palindrome Number__

A

**palindrome**is actually the**reverse of a number**. Suppose we have a number and if we take the reverse of the number then next number that we have is equal to the original number is called**palindrome**

__Flow Chart of Palindrome__

__Flow Chart of Palindrome__

__Example of Palindrome__

Consider the number 1221

If we take the reverse of the number then the resultant number will be 1221 hence both numbers are same and the number 1221 is

**palindrome number**__Program of Palindrome in C++__

#include <stdio.h>

void main(){

int num,r,sum=0,t;

printf(“Input a number: “);

scanf(“%d”,&num);

for(t=num;num!=0;num=num/10){

r=num % 10;

sum=sum*10+r;

}

if(t==sum)

printf(“%d is a palindrome number.n”,t);

else

printf(“%d is not a palindrome number.n”,t);

}

## Output

Input a number: 1221

1221 is a palindrome number