In Java,
Write a program to input a number and find the sum of the sum and product of its digits using for loop
For Example : 458 is the number
4 + 5 + 8 = 17
4 × 5 × 8 = 160
17 + 160 = 177
And then tell whether it is a even number or odd number.
Ex : Like in this case it is odd
Don't spam
Answers
Answered by
2
Answer:
The Program Is In the Attachment
Attachments:
Answered by
2
135
1 + 3 + 5 = 9
1 × 3 × 5 = 15
9 + 15 = 24
.•. this is a even number
Similar questions