Question: Code in MACRO(emu8086) Write a program that determines whether a number is divisible by the sum of its digits or not. If divisible, then print
Code in MACRO(emu8086)
Write a program that determines whether a number is divisible by the sum of its digits or not. If divisible, then print YES else print NO.
Input: 123 Output: NO
Input: 12 Output: YES
Here: Sum of 1+2+3 = 6, and 123 is not divisible by 6. In the case of 12, the sum of 1+2 = 3, and 12 is divided by 3. So, implement the logic and write the code.
Next ques is optional, if possible help please
Input a number & print it using STACK operation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
