Math, asked by khareanandee11, 1 month ago

ia has a favorite number that is even and has 2 digits, the sum of the digits is
9 and you say it when you count in 5’s.

Answers

Answered by ananyaanuj2006
2

General Algorithm for sum of digits in a given number:

Get the number

Declare a variable to store the sum and set it to 0

Repeat the next two steps till the number is not 0

Get the rightmost digit of the number with help of the remainder ‘%’ operator by dividing it by 10 and add it to sum.

Divide the number by 10 with help of ‘/’ operator to remove the rightmost digit.

Print or return the sum

Answered by sonysk217gmailcom79
1

Answer:

12 is it can you tellplz it is correct

Similar questions