Question bank › Math
Dsa Math Warm-up

Digit Product

Write a program that calculates the product of the digits of an integer. If the integer is negative, ignore the sign and still calculate the product of the digits. Input format: - A single line containing a single integer. Output format: - A single integer representing the product of the digits. Example: Input: -123 Output: 6

Key concepts

mathnumbersloops

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.