ARYA
Followers: 0 Following: 0
Feeds
已回答
Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid.
function valid= valid_date(year,month,day) flag=0; if(month<=0||month>12||day<=0||day>31) flag=0; else if(month==4|...
Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid.
function valid= valid_date(year,month,day) flag=0; if(month<=0||month>12||day<=0||day>31) flag=0; else if(month==4|...
2 years 前 | 0