السلام عليكم ورحمة الله وبركاته
الحمدلله والصلاة والسلام على نبينا محمد...
عندي مسألة في البرمجة ماني عارفتها وماني فاهمة حاجة منها أتمنى تساعودني فيها
write a program... that takes a data as input and prints the day of the week that data falls on .
-read from user : m (month) , d (day) , and y (year( .
for m ues 1 for Jan , 2for feb....etc
- print 0 for sunday , 1 for Monday , 2 for Tuesday , and so forth.
- use the Gregorian calendar :
y0= y - (14-m) /12
x= y0 + y0/4 - y0/100 + y0/400
m0= m + 12 * ((14-m) / 12 ) - 2
d0= (d + x + (31 * m0)/ 12 mod 7 .
جعلني واياكم في الفردوس الأعلى