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

hii pls help me!! even if u know how to do one, it's okk anything helps ​
Question 6 of 10 In what region did people first form civilizations? A. Southwest Asia B. North America C. China D. Australia
Mi compañera de cuarto se llama María y (1) 18 años
In another case, p and 2p are the first and second term respectively of an arithmetic progression. The nth term is 336 and the of the first n terms is 7224. Wri
If X is a continuous random variable than P (X= a)= ______ for any number a.​
if there are about 5,000.00 red blood cells in every one cubic millimiter of mrs. garcias blood and there are about 4,600,00 cubic millimiter of blood in her bo
f(x)=-2x^2+x-5 find f(-6)
Please help. I need it
Find the length of side x in simplest radical form with a rational denominator
3. Define 1 standard kilogram?​