write a java program to print the following series.
S= 1+X+X^2+X^3+X^4...20 terms
pea4518977:
Please marks as brainliest
Answers
Answered by
0
Answer:
Input: X = 2, N = 5
Output: Sum = 31
1 2 4 8 16
Input: X = 1, N = 10
Output: Sum = 10
1 1 1 1 1 1 1 1 1 1
Explanation:
Similar questions
History,
2 months ago
Math,
2 months ago
Social Sciences,
4 months ago
English,
4 months ago
Political Science,
10 months ago