answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Algorithm for to find sum of individual digits of a positive integer?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

The sum of a positive integer and a positive integer is?

A positive integer plus a positive integer is equal to a positive integer. For example, 2 + 2 = 4. The two digits being added together are called the addends, while the answer is called the sum.


What is the absolute value of an integer?

The digits of the number without any positive or negative sign. It will look just like the positive version of the integer.


What is the least positive integer that is eleven times the sum of its digits?

The answer is 198.


Is 150 an integer?

yes, any positive or negative number is an integer


What is the smallest 3 digit numbers with unique digits?

It is -987. The smallest positive 3-digit integer with unique digits is 102.


How many positive four-digit integer palindromes have 12 as the sum of the digits of the munber?

81


What if you begin with one digit integer multiply by 3 add 8 by 2 and subtract by 6?

The answer is a negative or positive integer with one or two digits.


What is an integer number?

Basically a number without decimals (digits after a decimal point). this can be either positive or negative.


What is the least possible 8-digits number without repeating any digit?

The least possible integer is -98765432. The least possible positive integer is 10234567.


If a 6 digit positive integer is added to another 6 digit positive integer the can have how many numbers?

12


How do you show a positive integer for example 12345678901234567890 in C sharp that has more than 17 digits?

There is Int64 class, it will do it.


What is the smallest number you can make using the digits 5 7 3 and 1?

The smallest positive integer is 1357.