Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int n;
- int r[4];
- cout << "Enter Your Number:";
- cin >> n;
- int i = 0;
- while (n != 0) {
- r[i] = n % 10;
- n = n / 10;
- cout << r[i];
- i++;
- }
- cout << endl;
- if (r[0] == r[2] && r[1] == r[3]) {
- cout << "TRUE";
- } else {
- cout << "FALSE";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement