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

13) Among needs are shelter all of these food and clothing healthcare
124DEE13-8D2B-4DC3-AB79-F2441 46E59A1.jpeg
factor the expression –5g + 15h – 25
Choose the value for x that makes the proportion true. A. 3 B. 4 C. 5 D. 6
Angel earns $540 in 6 days. If he earns the same amount of money each day, how much does he earn in 5 days?
what are some reasons you should NOT put a animal shelter near a riverside
Which fraction is equivalent to:
Which symbol can be used to correctly compare the two fractions? Use >, <, or = Enter your answer in the box.
Question 6 of 10 Which sentence uses a comma correctly to set off coordinating adjectives? A. The recipe requires six, eggs and one, cup of sugar. B. Jason, the
The primary cause of the War of 1812 was the violation of American rights at sea. True or False