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