1076

Codeup.kr/C언어 기초 100제

[Code up 문제] 1076번 문자 1개 입력받아 알파벳 출력하기

1. 정답 코드 #include int main(void) { char n; scanf("%c", &n); char i = 'a'; while(i != n + 1){ printf("%c ", i); i++; } } 2. 코드 설명 char 값으로 알파벳을 받아 온 후, 반복문으로 a~ n+1까지 값을 출력 해준다.

Jongung
'1076' 태그의 글 목록