Write a program to find number is divisible by 8 or not. idiotic answers will be reported good answer will be the brainliest
Answers
Answered by
1
Answer:
a=int(input("Enter the number"))
if (a%8==0):
print("Given number is divisible by 8")
else:
print("Given number is not divisible by 8")
Explanation:
1. "a" variable is crated to store integer value.
2. "%" modulus operator returns reminder.
3. Conditional statement used to check the condition.
Attachments:
Similar questions