Professional Documents
Culture Documents
String
month[]={"","January","February","March","April","May","June","July","August","September","Ocob
er","November","December"};
n=0;nn=0;
d=0;
m=0;
y=0;
n=sc.nextInt();
y=sc.nextInt();
nn=sc.nextInt();
void day_to_date()//Declaration of method to calculate the date and new date after n days
if((y % 100 == 0 && y % 400 == 0) || y % 4 == 0)//To check if the given year is leap year or not
day[2]=29;
}
k=0;
n1=n1-day[k];
k++;
d1=n1;
n=n+nn;
m=0;
n=n-day[m];
m++;
d=n;
obj.accept();
obj.day_to_date();
obj.display();
}
OUTPUT