1 답변
-
간단하게 작성했습니다. c++
#include <iostream> using namespace std; int main() { int* arr = new int[3]{1,1,1}; int temp = 1; for (int i = 0;i < 3;i++) { cout << "정수:"; cin >> arr[i]; for (int j = 0;j < 3;j++) { temp *= arr[j]; } cout << "누적곱:" << temp << endl; temp = 1; } }
-
(•́ ✖ •̀)
알 수 없는 사용자
-
댓글 입력