double *part = new double [n]; 해서


part[1], part[2] ... part[n]까지 값을 받을 때


part[1] 부터 part[n] 까지 합을 구하려면 코드 어떻게 짜야되나여 ㅠㅠ