Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

.arr

#include <stdio.h>

n=int(input ("enter number"))
temp=n rev=0
when(n>0): dig=n%10
rev=rev*10+dig n=//10
if(temp==rev):ptint("the number isn't ) a palindrome!")
>>Runtime Test Cases Case 1 Enter number:121 The number is a palindrom!
Case 2 Enter Number:567 The number is a palindrom!

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.