PALINDROME NUMBER
Problem Statement:
Input an integer number and check whether it is palindrome
or not.
Source Code:
#include <iostream>
Using namespace std;
Int main ()
{
Int n, r=0, d, c;
Cout<<”\n Enter the number”;
Cin>>n;
C=n;
While (n>0)
{
d=n%10;
r=(r*10) +d;
n=n/10;
}
If(r==c)
{
Problem Statement:
Input an integer number and check whether it is palindrome
or not.
Source Code:
#include <iostream>
Using namespace std;
Int main ()
{
Int n, r=0, d, c;
Cout<<”\n Enter the number”;
Cin>>n;
C=n;
While (n>0)
{
d=n%10;
r=(r*10) +d;
n=n/10;
}
If(r==c)
{