Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started