kakkuzhiyilron kakkuzhiyilron
  • 15-01-2021
  • Computers and Technology
contestada

write a python program to accept a number and check whether it is divisible by 4 or not​

Respuesta :

tonb
tonb tonb
  • 15-01-2021

Answer:

number = int(input("Enter number: "))

if (number % 4):

 print("{} is not divisible by 4".format(number))

else:

 print("{} is divisible by 4".format(number))

Explanation:

If the %4 operation returns a non-zero number, there is a remainder and thus the number is not divisable by 4.

Answer Link

Otras preguntas

which expression cannot be simplified? A.8x-8 B.8x-x C.8x+5x D.(8+5)x E.-(x+x) why
1 What is the outer layer of the Earth called?
if i have 4 times the money of my brother. our totl is d dollars. how much money do each of us have?
In a recent survey about what food was your favorite take-out, it was determined that 40% of students preferred pizza, 32% of students preferred cheeseburgers,
In parasitism the organism that benefits, usually in the form of nutrition, is the
What are the coordinates of point B on AC Such that the ratio of AB to AC is 5:6
A polygon has two sets of parallel lines and four right angles based on this information which of the following is true about the polygons a it is a rectangle
In "The Necklace", why is Madame Loisel still upset as the party approaches? a) She doesn't have a nice wrap to wear b) Her dress did not turn out the way she w
"Showing both ignorance and viciousness, the enemy chose to launch his attack on the Day of Atonement, the holiest day of the year for Jews, knowing that many
Can somebody solve this...