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