💡 학습 자료 다운로드
💡 사칙 연산, 비교, 반복문
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
int* solution(long long n) {
int* answer = (int*)calloc(11, sizeof(int)); //malloc보다 calloc을...
for (int i=0 ; n ; i++, n /= 10){ //for문에 여러가지를 함께 담아서...
answer[i] = n % 10;
}
return answer;
}