작성한 질문수
문제로 배우는 C언어
연필의 개수
작성
·
150
0
#include <stdio.h>
int main() {
int student, das;
scanf("%d", &student);
das = (student - 1) / 12 + 1;
printf("%d\n", das);
return 0;
}
답변 1
1
안녕하세요^^
네. 위에처럼 풀어도 될 것 같습니다.