to display 1, 2, 5, 10, 17, 26,.............upto 10 terms
please solve this i have exams tomorrow
Answers
Answered by
0
Answer:
1,2,5,10,17,26,37,50,65,82
Explanation:
it is formed like this:
2-1=1
5-2=3
10-5=5
17-10=7
follow this pattern
u should subtract the two adjacent values ,in order to get odd number sequence like 1,3,5,..
Answered by
0
Program in python:
Explanation:
i=1#take a variable.
j=1#take a second variable.
for x in range(10):#for loop.
print(i,end=", ")#print the value.
i=i+j#increase the value of i.
j=j+2#increase the value of j.
Output:
- The above program print the above series upto 10 terms.
Code Explantion:
- The above code is in python language, which holds a loop which runs from 1 to 10.
- Then the expression evaluate the value of the series and then the series is printed by the help of print function.
Learn More:
- Python : https://brainly.in/question/14689905
Similar questions