Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
palindrome
//g++ 7.4.0 #include <iostream> using namespace std; int main() { int n; int rev=0; cin>>n; int temp=n; while(temp!=0) { int l = temp%10; rev=(rev*10)+l; temp=temp/10; } if(rev==n) { cout<<"palindrome"; } else{ cout<<"not palindrome"; } }
run
|
edit
|
history
|
help
0
javascript style arrays in c++
csv parser
Optimization Lab 2
Decimal to Binary
ახარისხება~ფინალური
Vectores - insertar ordenado e imprimir
proga2
Making pyramid using nested loop 1/2
wealth of banks
template