pu
10. WAP to input a no and check whether it is special no or not?
Answers
Answered by
0
Answer:CLS
INPUT"ENTER A NO "N
SUM=0
WHILE N<>0
R=N1 MOD 10
SUM=SUM + R
PRODUCT = PRODUCT*R
N1=N1/10
WEND
IF SUM=PRODUCT THEN
PRINT"SPECIAL NO "
ELSE
PRINT "NOT A SPECIAL NO"
END IF
END
HOPE THIS HELPS :)
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
English,
9 months ago
Math,
1 year ago
Hindi,
1 year ago