정수에서 한 자릿수씩 빼서 출력하기Kim Minseo·Jan 11, 2025while(n != 0) { std::cout << n % 10 << std::endl; n /= 10; 예시) 1352 → 2, 5, 3, 1 algorithms Share this