728x90 반응형 for문 작성법1 프로그래머스 C++ Level. 0 짝수의 합 정수 n이 주어질 때, n이하의 짝수를 모두 더한 값을 return 하도록 solution 함수를 작성해주세요. #include #include using namespace std; int solution(int n) { int answer = 0; for(int i = 0; i 2023. 2. 28. 이전 1 다음 728x90 반응형