Check Palindrome

check_Palindrome.cpp
#include <bits/stdc++.h>
using namespace std;

string check_Palindrome(int n){
    int Num = n;
    int reverse_Num = 0;
    while(n > 0) {
        int digit = n%10;
        reverse_Num = reverse_Num*10 + digit;
        n /= 10;
    }
    return reverse_Num == Num ? "true" : "false";
}

int main() {
    int n;
    cin >> n;
    cout << check_Palindrome(n);
    return 0;
}

Input: 1331
Output: true