+ 2
Check whether a number is Palindrome or not using for loop
Write a program to check whether the given is Palindrome or not. Do it using for Loop.
3 Answers
+ 1
int rev =0, d;
for(I=n;I>0;I=I/10){
d=I/10;
rev = rev*10+d;
}
if(rev = n)
System.out.print("palindrome ");
+ 1
https://code.sololearn.com/c8nEpu62W3Kd/?ref=app