Company: Virtusa_11oct
Difficulty: medium
Product of Non-Zero Digits Problem Description Write a small utility that takes a number and multiplies together only its non-zero digits, skipping over any digit that is 0. Process the digits with a for-each style loop as you build the running product. Input Format The input consists of a single integer n, the number whose non-zero digits should be multiplied together. Output Format Print a single integer equal to the product of every non-zero digit in n. Refer to the sample output for formatting specifications. Examples Example 1: Input: 1089 Output: 72 Example 2: Input: 123 Output: 6 Example 3: Input: 50140 Output: 20 Constraints 1 ≤ n ≤ 10 10