Write an Algorithm and draw a Flowchart to input two numbers and check if the first number is divisible by the second number.
Answers
Answered by
2
Python::
num1 = int(input("Enter first Number : "))
num2 = int(input("Enter second Number : "))
if num1 % num2 == 0:
print("Yes, it is divisible")
else:
print("No, it isn't")
Logic::
==> it inputs two values in variables.
==> It has conditional statements which returns if it is divisible and no if it is not.
==> Yeah, we crashed it.
I hope that my answer helped you....
Similar questions