fixed lint

This commit is contained in:
Krishna Vedala 2020-05-26 09:26:40 -04:00
parent d6d328c8c9
commit fb3a8091f9
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -1,23 +1,20 @@
#include <iostream>
#include <algorithm>
#include <iostream>
using namespace std;
int main()
{
int main() {
int num;
cout << "Enter number = ";
cin >> num;
std::cout << "Enter number = ";
std::cin >> num;
string s1 = to_string(num);
string s2 = s1;
std::string s1 = std::to_string(num);
std::string s2 = s1;
reverse(s1.begin(), s1.end());
if (s1 == s2)
cout << "true";
std::cout << "true";
else
cout << "false";
std::cout << "false";
return 0;
}