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

Answers

Answer 1

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.


Related Questions

Other Questions
84 pt =_____ qt5.0 gal =_____ L Roberto has a certain number of songs on his MP3 player.Each week, he plans to add 4 more songs. After 5 weeks, hehad 40 songs on his MP3 player. Which statement is true?A. Roberto adds 5 songs on his MP3 player per week.B. Roberto adds 10 songs on his MP3 player per week.C. The initial number of songs on Robertos MP3 player is 10.D. The initial number of songs on Robertos MP3 player is 20. Write in index form3x * 3x * 3x * 3x X^2+ 2x 35 = 0? ............. What is the radius of a sphere with a volume of 3026 cm ^3, to the nearest tenth of a centimeter? Please help with this last one Find the value of 24/25 4/5. Explain your reasoning Write down 4/4 positive and negative international influences on youand your friends. *. John pulled a black sock from his drawer. He has 5 black socks, 4 navy socks, and 6 brown socks left in the drawer. He picks another sock at random. What is the probability it matches the black one? A.1/6 C. 1/3 B. 1/5 D. 1/2 HELP PLSSS PLSSSS WALLAH HELP Help for this answer!!!! Why are the pyramids considered one of ancient Egypt's greatest achievements? Write the following numbers in scientific notation: a) 0.0006730 b)50000.0 c)0.000003010 d) 132.40 e)2232 The words 'falling', 'plummeting', 'shattered', 'rejected', 'thrilled', 'thriving', 'renewed' and 'restored' are examples of Is this graph and example of sun or cos graph? a student buys (x) fashion magazines and (y) sports magazines. Each fashion magazine costs $2.00 and each sports magazine costs $1.60. If the student buys a total of 8 magazines for $14.00, which equation best represents the situtation Please help a bruddah out its 8 pm and I'm grinding on schoolwork. Question 5Evaluate:Five cubed.Write the numerical answer only. Help please.Algebra. Question 4Which statement BEST describes the direct impact of water pollution in the Middle East?