answersLogoWhite

0

Well, it's very hard to write a flowchart in text, so I'll give you some pseudo code instead.

int number = the given number

int sum = 0

loop while number is not 0

sum = sum + (number mod 10)

number = number / 10

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Write algorithm and draw flowchart to find the sum of even numbers?

jgfujtf


Give a sample problem with the use of algorithm and flowchart symbols?

design a flowchart that will input three numbers and get their sum. If the sum is greater than 20, then print "sum>20",else print the sum.


Algorithm for to find sum of individual digits of a positive integer?

enter the number whose digits are to be added num is the given value num=0! k=num%10 sum=sum=k k=num/10 num=k print the sum of the digits


How do you write and draw an algorithm in flowchart for Add 2 and 4 and print the sum?

2+4


What is an algorithm to calculate the sum of the digits of a three digit number?

algorithm is a way to solve your problem


What is sum of individual digits?

The sum of the individual digit is itself


What will be the Flowchart for adding all elements in an array in c plus plus?

It is not possible to show a flowchart in this website -- it is text only. The algorithm can be summarised as follows: int sum(std::array<int>& a) { int sum = 0; // initialise the return value for (auto i : a) // for each value in the array sum += i; // increment the sum by the value return sum; // return the sum }


What is the sum of the digits of 10?

The sum of the digits of the number 10 is calculated by adding its individual digits together. The digits in 10 are 1 and 0. Therefore, the sum is 1 + 0 = 1.


What is the algorithm and flow chart to find the sum and average of 3 numbers?

The algorithm to find the sum and average of three numbers involves the following steps: Input three numbers (let's call them A, B, and C). Calculate the sum by adding the three numbers: Sum = A + B + C. Calculate the average by dividing the sum by 3: Average = Sum / 3. Output the sum and average. In a flowchart, you would start with a "Start" symbol, followed by input steps for the three numbers, then a process step for calculating the sum, another for calculating the average, and finally an output step to display the results before ending the flowchart.


What is the algorithm and draw flow chart to find the sum and average of 3 numbers?

Algorithm to find the sum and average of 3 numbers: Start. Input three numbers (let's call them A, B, and C). Calculate the sum (Sum = A + B + C). Calculate the average (Average = Sum / 3). Output the sum and average. End. Flowchart: [Start] ↓ [Input A, B, C] ↓ [Sum = A + B + C] ↓ [Average = Sum / 3] ↓ [Output Sum, Average] ↓ [End]


What is the smallest two digit number that can be divided by its own digits?

By the sum of its digits: 10. By each of its individual digits: 11.


Shell program to find the sum of square of individual digits of a number?

There are many shell programs that will find the sum of the square of individual digits of a number. A small example is: SD=3n=2, sum=2, and SD=2.