answersLogoWhite

0

#include<iostream.h>

main()

{

int year,date;

cout<<"enter year\n";

cin>>year;

cout<<"enter date\n";

cin>>date;

if(year%4==0)

date=date+2;

else

date=date+3;

cout<<" the added date was"<<date\n;

}

output:

enter year:2011

enter date:18

the added date was:21.

Note: This program exectues only in cpp....

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is 100 days after February 6?

Adding 100 days to February 6 in a non leap year gives May 17. Adding 100 days to February 6 in a leap year gives May 16.


Can you start a sentence with consider?

Consider how adding more information can provide a clearer explanation.


What day falls 186 days after February 24?

Adding 186 days to February 24 in a non-leap year gives August 29. Adding 186 days to February 24 in a leap year gives August 28.


Can you explain how the GOES Sentri program works when adding a car"?

The GOES Sentri program allows for expedited border crossing by pre-approved travelers. When adding a car, you need to register the vehicle in the program and provide necessary documentation for approval.


What is the date 120 days after February 10?

Adding 120 days to February 10 in a non-leap year gives June 10 of the same year. Adding 120 days to February 10 in a leap year gives June 9 of the same year.


What is 60 days from February 23 2010?

Adding 60 days to February 23, 2010 gives April 24, 2010.


What is 90 days from February 1 2011?

Adding 90 days to February 1, 2011 gives May 2, 2011.


How do you determine the sum of a group of numbers?

You may wish to consider adding them together.


What day is 60 days after February 3 2011?

Adding 60 days to February 3, 2011 gives April 4, 2011.


What will the date be 100 days from February 14 2009?

Adding 100 days to February 14, 2009 gives May 25, 2009.


What is the date 40 weeks from February 1 2009?

Adding 40 weeks to February 1, 2009 gives November 8, 2009.


What is the date 180 days after February 28 2011?

Adding 180 days to February 28, 2011 gives August 27, 2011.