| 5 | #include <iostream> |
| 6 | using namespace std; |
| 7 | int main3() { |
| 8 | int a, sum = 0; |
| 9 | cout << "Please enter the number: "; |
| 10 | cin >> a; |
| 11 | while (a != 0) { |
| 12 | sum = sum + a % 10; |
| 13 | a = a / 10; |
| 14 | } |
| 15 | cout <<"The sum of digits of given number is "<< sum <<";"<< endl; |
| 16 | |
| 17 | system("pause"); |
| 18 | return 0; |
| 19 | } |
nothing calls this directly
no outgoing calls
no test coverage detected