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 term defines the spread of technology, communication, and economic production from one culture to another?
When some people think about Texas, they think of cowboys on the open range-herding cattle up a dusty trail. However, Texas has much more than open prairie with
A farmer is planting vegetables on his field. The farmer has planted 24 seeds so far, which is 40% of it's capacity. What is the maximum number of seeds the far
determine if the equations are parallel, perpendicular, or neither​ANSWER ALL!!!!!!
ILL GIVE BRAINLYIST IF SOMEONE HELPS PLEASE HURRY
Write the repeating rational number 0.77777… as a fraction.
I NEED HELP, can someone make do this real quick?
What is the area of the trapezoid? A trapezoid has a base of 12 centimeters, a height of 16 centimeters, and a top side length of 10 centimeters.
Which statement explains why a blue car does not appear to be red? A. Blue light is absorbed by the car. B. Red light is absorbed by the car. C. Blue light is t
-1.4 Convert 4kg to grams (g), NB: 1kg = 1000g.​