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
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