sol y m = if y `div` 4 == 0 then if y `div` 100 == 0 then if y `div` 400 == 0 then if m == 2 then 29 else then mDays` else then mDays` else then if m == 2 then 29 else then mDays` else then mDays`
mDays` m
| m == 2 = 28
| m `elem` [1,3,5,7,8,10,12] = 31
| m `elem` [4,6,9,11] = 30
| otherwise = error "invalid month"
2000 2 그러니까 년도와 월을 입력하면 그 월에 몇일이 있는지 출력해주는 프로그램인데
에러만 뜨옵니다 살려줘잉 ㅠㅠ
ㄴ 감사합니다 ;)