Computer Science, asked by resmi2397, 10 months ago

write a programme to check whether the given year is leap year or not using else if ladder in c++
please answer only in else if ladder c++​

Answers

Answered by habibqureshii
3

Answer:

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

* 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