Digit Sum Greater Than Product
Difficulty: Medium
Phase: 1 · Conditional Thinking
XP Reward: 20 XP
Topics: Conditional Thinking, Medium
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Take an integer (1-9999). Check if sum of its digits is strictly greater than the product of its digits. Print 'Yes' or 'No'. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: 1111
Output: Yes
Explanation: Sample execution for input 1111