Computer Science, asked by sneha413639, 4 months ago

Please answer my question..☠
no spam☠​

Attachments:

Answers

Answered by Oreki
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