Computer Science, asked by Vineetm2271, 9 months ago

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