write a program to print the given series:
3 6 12 24 48 96.......up to n terms
Answers
Answered by
0
Answer:
10880808080808090908050228
Explanation:
838383838388577*83868
Answered by
2
Python Program :
Explanation:
size=int(input("Enter the value of n for the series: "))#Take the value from the user.
i=3
for x in range(size):#for loop to print the series.
print(i,end=" ")
i=i*2#expression for the series.
Output :
- If the user input as 2, then the output is "3 6".
- If the user input as 6, then the output is the above defined series.
Code Explanation:
- The above series difference is a multiple of previous number. So the above code written in python language, in which the first line take the input for the size of the term.
- Then the for loop runs up to that size and print the series by the help of print function.
Learn More :
- Python : https://brainly.in/question/14689905
Similar questions
India Languages,
5 months ago
Environmental Sciences,
5 months ago
English,
5 months ago
Math,
10 months ago
Math,
10 months ago
Chemistry,
1 year ago
Chemistry,
1 year ago