the sum of my digits is 6? answer=60
Add the digits together. The sum of the digits of 23 is 5.
4,777 km
Since the sum of the digits is divisible by 3, the original number is also divisible by 3.Since the sum of the digits is divisible by 3, the original number is also divisible by 3.Since the sum of the digits is divisible by 3, the original number is also divisible by 3.Since the sum of the digits is divisible by 3, the original number is also divisible by 3.
31.
4
The sum is 154.
the sum of my digits is 6? answer=60
Add the digits together. The sum of the digits of 23 is 5.
The number is 45. The sum of its digits i.e. 4+5=9 Five times the sum of its digits i.e. 5 times 9 which is 45
In python 3 I would write the following (assuming the digits are input by a user): #!/usr/bin/python a = input("Type a number: ") sum = 0 for i in a: #the for next loop performs the function of a while loop with less lines of code. #(My formating keeps getting deleted when I publish this answer. There should always be a tab- strictly speaking four spaces before this line) sum = sum + int(i) sum = str(sum) print("Your number was", a + ". The sum of its digits is" , sum + ".") As you can see, the for next loop iterates through each value in the string "a", and sets its value to "i". For each iteration, the current value of i is added to the variable "sum" until the end of the number is reached. The program then prints the original number, and the sum of its digits.
The sum is: 1333 km
8 is the same as the sum of the digits of its cube, 512.
1 + 1 = 2 The sum of the digits is therefore 2.
The sum of your digits is the total number arrived at after adding two or more numbers.
The number is 54. The sum of its digits is 5 + 4 = 9. 54/9 = 6.
Add the digits together. The sum of the digits of 23 is 5.