Categories: Uncategorized

C++ Program to Check is given number is palindrome number or not

Result :

Program to Check is given number is palindrome number or not

#include<iostream>

using namespace std;

main()

{

 int n, temp, rev = 0;

 

 cout << "Enter the Number to check is it palindrome number or not : ";

 cin >> n;

 

 temp = n;

 

 while(temp != 0)

 {

  rev = rev * 10; 

  rev = rev + temp%10;

  temp = temp/10; 

 

 }

 

 if(n==rev)

 {

  cout << n << " is an palindrome number";

 }

 else

 {

  cout << n << " is not a palindrome number";

 } 

 return 0;

}
reecry

Recent Posts

Insta360 – Videos keep exporting backwards | Wrong side render in insta360

https://youtu.be/0RRUOIvmuWA I realized that I had my camera set up incorrectly, so when I upload…

9 months ago

Make Animated progress step bar using Figma

https://youtu.be/C3oFfV20K_c Make Animated progress step bar using Figma

11 months ago

How to Hide All Grids in Figma

https://youtu.be/o3pSH_oRzko How to Hide All Grids in Figma

11 months ago

How to Create Responsive Tool tip in figma

https://youtu.be/hdSUylKSsho How to Create Responsive Tool tip in Figma

11 months ago

Pixel Grid not visible in figma | How to Turn on figma Pixel Grid

https://youtu.be/AEiH7dSDhKo Having issue in figma pixel grid? learn how to show/ hide figma pixel grid…

11 months ago

Fix External Monitor Lag on Mac OS Ventura

https://youtu.be/iilYzHg9LwQ There are some issues going on in ventura OS its still in development phase…

2 years ago