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

Find the measurement of angle g.
The most significant result of the Third Seminole War was that white settlers fought each other over land. the Seminole people gained new territory. the United
What is the shape of the horizontal cross section of the given prism? rectangle square triangle pentagon
Which of the following challenges is Singapore’s economy currently facing? A. Singapore’s economy still isn’t developed. B. Most of Singapore’s citizens still w
x+ 5 = 16 x= -5 +6. Solve these equations
What is the 8th term if your first four are 3,7,11,15
Solve the equations 8y-9x=-3 5y-8x=10
1 - escoger audio listen to each question and choose the most logical response. Comprarlo
Why doesn’t it level me up??
At a hockey game, a vender sold a combined total of 216 sodas and hot dogs. The number of sodas sold was two times the number of hot dogs sold. Find the number