Please answer my question..☠
no spam☠
Attachments:
Answers
Answered by
1
Java:
public class DigitProduct {
static int product(int number) {
return (number % 10) * ((number /= 10) % 10) ;
}
}
Python:
def product(number):
return (number % 10) * ((number // 10) % 10)
Similar questions
Science,
2 months ago
Economy,
2 months ago
Social Sciences,
4 months ago
English,
4 months ago
English,
10 months ago