What will be the output of the following:
x, y, sum= 1,5, 10
for i in range(1,y+1.2):
sum = sum + X
X+X+1
Answers
Answered by
0
Answer:
This is a mathematical series program where a user must enter the number of terms up to which the sum of the series is to be found. Following this, we also need the value of x, which forms the base of the series.
so I'm taking an Examples to explain it :
Input : base = 2, range = 5
Output : 18.07
Input : base = 1, range = 10
Output : 3.93
Similar questions