Use a while loop to determine how many terms in the series 3k^2 are required for the sum to surpass 2000
Question
Answer:
Using JAVA:int sum = 0;
int k = 1;
while(sum <= 2000) {
sum += 3*k*k;
k++;
}
System.out.println(k);
Output: 14
Which means it will take 14 terms for the series to surpass 2000
solved
general
11 months ago
9979