Computer Science, asked by mmakesh604, 1 month ago

1. Write C++ program to find the sum of the number​

Answers

Answered by prajapatijigar656
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