Lucy is celebrating her 15th birthday. Her father promised her that he will buy her a new computer on her birthday if she solves the question asked by him. He asks Lucy to find out whether the year on which she was born is a leap year or not. Help her to solve this puzzle so that she celebrates her birthday happily. If her birth year is 2016 and it is a leap year display ""2016 is a leap year."" Else display ""2016 is not a leap year."" INPUT & OUTPUT FORMAT: Input consist of 1 integer. Output consist of 1 string.
Answers
Answered by
0
Answer:
As president of arident youth club write a Notice about in vitaring all club members to volunteers cleaning campaign organised by your club at old Delhi Railway Station.give all nessary
Answered by
2
Answer:
#include <iostream>
using namespace std;
int main()
{
int year;
cin >> year;
if (year % 4 == 0)
{
if (year % 100 == 0)
{
if (year % 400 == 0)
cout << year << " is a leap year";
else
cout << year << " is not a leap year";
}
else
cout << year << " is a leap year";
}
else
cout << year << " is not a leap year";
return 0;
}
Explanation:
Similar questions
Math,
4 months ago
Social Sciences,
4 months ago
Chemistry,
9 months ago
Math,
9 months ago
English,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago