Write a python program to check whether the number is divisible by 7. If its divisible, print its divisible otherwise find previ
ous number and the next number which is divisible by 7
1 answer:
f = int(input("Enter a number: "))
if(f%7==0):
print("It's divisible by 7.")
else:
if(f<7):
print("7")
else:
print(str(f-(f%7))+", "+str(f+(7-(f%7))))
You might be interested in
Answer:
Explanation:
Well I am sorry I don't know the answer anyway.
Answer:
the answer is D.All of the above
Answer:
yoooo nba BAD BAD
Explanation:
I believe it’s d because computer programs may use both
Umm I’m sorry but u don’t understand