1.

Solve : give me a answer of this ques?

Answer»

Mr. Yuganda is an ASTROLOGER. To impress PEOPLE, he asks people their
birth date & immediately tells them the day when they were born and number of
Sundays in that year. For e g, he asked me my birth date i.e., 23rd July 1989.
And he said me that it was Sunday, which was correct and number of Sundays
are 53. Your TASK is to write a program which will prove that it is simple work to
calculate day and number of days in that year when user enters any date. Your
program should ask for date, MONTH, year SEPARATED by “/”. If it is valid then it
should print the day.
e.g.
Input:
Enter the date : 23/07/1989
Output:
Entered date is 23rd April 1989
Leap year : NO
Day is Sunday
No. of days : 265
No. of Sundays : 53We don't do homework.



Discussion

No Comment Found