Back To C++ Loops Index
continue statement results in termination of running iteration
//program to input a number and find whether it is palindrome or not (1221 is a palindrome and 1234 is not a palindrome) #include
#include
void main() { clrscr(); int n,num,digit,rev=0; cout<<"\nenter the number"; cin>>num; n=num; do { digit=num%10; rev=(rev*10)+digit; num=num/10; }while(num!=0); cout<<"the reverse of number is "<