(1 mark, file to be edited: Q1.c)
2 of 2
Paper No: 1
Z number is a positive integer that sum of its digits is equal to multiply of its digits.
For example, 123, 132, 213, 231, 312 and 321 are Z numbers because 1+2+3=1*2*3.
But 52 is not a Z number because 5+27 and 5*2=10.
Input
Users are required to enter a positive integer N (0 ≤ N ≤ 10°) using the keyboard (STDIN).
Output
Please print out "Yes" even if N is a Z number. Otherwise, prints out "No" even if N is not a Z number.
Sample
Below is an example of how the program will run:
Sample 1 123
OUTPUT:Yes
Press any key to continue...
Sample 2
Zoom
+ 75%
Close