/* while (condition ) { stmt1; stmt2; .... stmtn; }//endwhile */ /**********************************************************************************/ /* This program adds all the digits in a given integer */ /* eg: input: 12345 */ /* output: 15 */ /*********************************************************************************/ #include using namespace std; int main() { int n; int sum = 0; cout <<"Enter num: "; cin >> n; while (n > 0 ) { sum = sum + n % 10; n = n/10; } cout << sum <