C++ program to calculate the sum of the digit of a number.
Answers
C++ Program to Display the Sum of the Digits of a given Number
C++ Program to Display the Sum of the Digits of a given Number* C++ program to Display the Sum of the digits of a given Number.
C++ Program to Display the Sum of the Digits of a given Number* C++ program to Display the Sum of the digits of a given Number.#include<iostream>
C++ Program to Display the Sum of the Digits of a given Number* C++ program to Display the Sum of the digits of a given Number.#include<iostream>using namespace std;
C++ Program to Display the Sum of the Digits of a given Number* C++ program to Display the Sum of the digits of a given Number.#include<iostream>using namespace std;int val, num, sum = 0;
C++ Program to Display the Sum of the Digits of a given Number* C++ program to Display the Sum of the digits of a given Number.#include<iostream>using namespace std;int val, num, sum = 0;cout << "Enter the number : ";
C++ Program to Display the Sum of the Digits of a given Number* C++ program to Display the Sum of the digits of a given Number.#include<iostream>using namespace std;int val, num, sum = 0;cout << "Enter the number : ";cin >> val;
C++ Program to Display the Sum of the Digits of a given Number* C++ program to Display the Sum of the digits of a given Number.#include<iostream>using namespace std;int val, num, sum = 0;cout << "Enter the number : ";cin >> val;num = val;
C++ Program to Display the Sum of the Digits of a given Number* C++ program to Display the Sum of the digits of a given Number.#include<iostream>using namespace std;int val, num, sum = 0;cout << "Enter the number : ";cin >> val;num = val;while (num != 0)