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

Respuesta :

year = 1972
current year = 2021

while year <= current year:
print (year)
year = year + 4

The program to print  the U.S. presidential election years from 1792 to present day is

while year <= current year:

print (year)

What is a program?

A program is the set of codes or instructions that are used to generate a pattern or write something using a programming language.

To print the U.S. presidential election years from 1792 to present day, knowing that such elections occur every 4 years.

Following is the set of codes:

while year <= current year:

print (year)

Thus, this the program written to print the election year.

Learn more about program.

https://brainly.com/question/11023419

#SPJ2