30
unknown
plain_text
3 years ago
300 B
5
Indexable
#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"; } }
Editor is loading...