PRF192_-_PE_-_SU_2023_-_1_274.webp
V

PRF192_-_PE_-_SU_2023_-_1_274.webp

(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
Chưa có bình luận nào.

Thông tin

Category
PRF192
Thêm bởi
virtuous_hero
Ngày thêm
Lượt xem
1,730
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_PE_-_SU_2023_-_1_274.webp
File size
39.6 KB
Dimensions
1366px x 705px

Share this media

Back
Bên trên Bottom