Community Profile

photo

Amina Sadia


Last seen: 1 month ago
1 total contributions since 2020

Amina Sadia's Badges

  • First Answer

View details...

Contributions in
View by

Answered
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,date) a = rem(year,400); b = rem(year,4); c = rem(year,100); %check if either year, m...

2 months ago | 0