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