Computer Science, asked by abukdagoot12, 1 year ago

how to program all even leap years in c++

Answers

Answered by kishu636
2

Answer:

The program output is also shown below.

* C++ Program to Check if the Entered Year is a Leap Year.

using namespace std;

int year;

cout << "Enter the year in yyyy format : ";

cin >> year;

if (year % 4 == 0)

cout << year << " is a leap year";

cout << year << " is not a leap year

Similar questions