Company: Virtusa_11oct
Difficulty: medium
Product of Non-Zero Digits Problem Description Oliver is creating a mathematical tool to calculate the product of all non-zero digits in a given number. He wants to develop a program that reads an integer input, uses a for-each loop to iterate through each digit, and computes the product of the non-zero digits. Can you assist Oliver in this? Input Format The input consists of a single integer n, representing the number for which Oliver wants to calculate the product of all non-zero digits. Output Format The output prints an integer representing the product of all non-zero digits in the given integer. 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