30

mail@pastecode.io avatar
unknown
plain_text
2 years ago
300 B
2
Indexable
Never
#include <iostream>
#include <string>


int main(int argc,char** argv){
    std::string x= std::string(argv[1]);
    std::string y="";

    for (int i = x.size()-1; i >= 0 ; --i) {
            y+=x.at(i);
    }
    if(x==y){
        std::cout<<"true";
    } else{
        std::cout<<"false";
    }

}