생활
C언어 어떻게 하나요? 알려주세요
어떻게 해야하나요? 너무어렵내요 ㅠㅠㅠㅠㅠㅠㅠ 전문가님들 도와주세요 너무 어렵습니다 알려주시면 감사하겠습니다 ㅠㅠ
55글자 더 채워주세요.
2개의 답변이 있어요!
- 소스코드 파일 다운로드 : https://github.com/sigmak/exercise4_01/tree/2021-10-13-C-monthDays - 1. 소스코드   - 2. 컴파일후 실행결과 캡쳐       
- 아래처럼 해보세요. - #include <stdio.h> - int main(void) - { - int year; - int day[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; - scanf("%d", &year); - printf("%d\n", day[year]); - return 0; - }