it was monday on the date 01/01/1900 .if any year input find wat is the day on 1st january of this year.according to the gegorian calender.program must be in C/C++ coding.
It was monday on the date 01/01/1900 .if any year input in C, find wat is the day on 1st january of this year?
calculate the number of days between 01/01/1900 and the date your program got and do numofdays mod 7(numofdays % 7).
if it is equal to 0 it is monday if it is 1 it is tuesday and so on.
make an array of days and then your answer will be the index of the array.
This should be easy considering i am a 14 year old who learned C/C++ using tutorials online by myself and gaining experience through(wxwidgets.org)
I thought of this in like a minute.
Reply:Shoudlnt you do your homework yourself?
Look at C++ websites on search.yahoo.com and find the answer
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment