SweetieGirl8726 SweetieGirl8726
  • 25-11-2022
  • Computers and Technology
contestada

Write a program that prints the U.S. presidential election years from 1792 to present day, knowing that such elections occur every 4 years. Hint: Initialize your loop variable to 1792. Don't forget to use <= rather than == to help avoid an infinite loop.
year = 1792
current_year = ?
while year ? ??:
# Print the election year
year = year + ?

Respuesta :

Otras preguntas

What is the slope of the line between (3, -4) and (-2, 1)?
Let A={2,3} and B= {7,8}.write the power set of AxB.
In monocots the endosperm is a large portion of the seed, while in dicots this structure is virtually absent. Explain the absence of the endosperm in dicots
Write sin3xCos2x + cos3xsin2x as a single trigonometric function
Why is it 5 :30 p.m in India and 12 :00 noon in London ?
the floor of the room is cooler than the ceiling.explain this based on air currents in the room.
if a sum borrowed under compound intrest doubles itsef in 10 years, when will it become four fold?
if x=at^3 and y=bt^2 then find dy/dx
What ship did Christopher Columbus ride in?
write an equation of the line that passes through the given points:   there are four questions:   1) (0,-1);(6,8)   2) (3,1);(9,7)   3) (1,2);(10,14)   4) (0,0)