Computer Science, asked by chaplotarya, 3 days ago

Write a program to print the sum of following series: s= 1/x 1 - 1/x 2 + 1/x 3 - 1/x 4 ……………. - 1/x 10​

Answers

Answered by gardenheart653
0

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 

Similar questions