I need help writting a script that computes the days of the week for years 2010,2011, and 2012 i need the input to be of xx/xx/xxxx.
and the output to be say something like
"xx/xx/xxxx is the 243 day of the year and falls on a wednesday."
so far i only have:
n = input('Enther month, day and year in the form xx/xx/xxxx for 2012, 2011, or 2012: ')
im not sure how to go about doing the rest anyone have any suggestions?? please help! I need to use IF statements

답변 (1개)

Jonathan Sullivan
Jonathan Sullivan 2012년 2월 22일

0 개 추천

help weekday
doc weekday

댓글 수: 2

Jonathan Sullivan
Jonathan Sullivan 2012년 2월 22일
weekday('02/22/2012')
lowcalorie
lowcalorie 2012년 2월 22일
How can i do this using if statements

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Calendar에 대해 자세히 알아보기

질문:

2012년 2월 22일

편집:

2013년 10월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by