1. Write C++ program to find the sum of the number
Answers
Answered by
1
Answer:
Let's see the sum of digits program in C++.
#include <iostream>
using namespace std;
int main()
{
- int n,sum=0,m;
- cout<<"Enter a number: ";
- cin>>n;
- while(n>0)
Similar questions